2002-07-08 04:28:42 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Configuring fcron</title>
|
|
|
|
|
2003-09-19 05:21:15 +08:00
|
|
|
<sect3><title>Config files</title>
|
|
|
|
|
|
|
|
<para><filename>/etc/fcron.conf</filename>,
|
|
|
|
<filename>/etc/fcron.allow</filename>,
|
|
|
|
<filename>/etc/fcron.deny</filename></para>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
|
|
|
|
<para>There are no required changes in any of the config files.
|
|
|
|
Configuration information can be found in the man page for
|
|
|
|
<filename>fcron.conf</filename>.</para>
|
|
|
|
|
|
|
|
<para>Fcron scripts are written using fcrontab. Refer to the man page
|
|
|
|
for fcrontab for proper parameters for your situation.</para>
|
|
|
|
|
|
|
|
<para>Create the boot script with the following:</para>
|
|
|
|
|
|
|
|
<screen><userinput><command>cat > /etc/rc.d/init.d/fcron << "EOF"
|
2002-07-08 04:28:42 +08:00
|
|
|
#!/bin/sh
|
|
|
|
# Begin $rc_base/init.d/fcron
|
|
|
|
|
|
|
|
# Based on sysklogd script from LFS-3.1 and earlier.
|
|
|
|
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
|
|
|
|
|
|
|
|
source /etc/sysconfig/rc
|
|
|
|
source $rc_functions
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
echo "Starting fcron..."
|
|
|
|
loadproc fcron
|
|
|
|
;;
|
|
|
|
|
|
|
|
stop)
|
|
|
|
echo "Stopping fcron..."
|
|
|
|
killproc fcron
|
|
|
|
;;
|
|
|
|
|
|
|
|
restart)
|
|
|
|
$0 stop
|
|
|
|
sleep 1
|
|
|
|
$0 start
|
|
|
|
;;
|
|
|
|
|
|
|
|
status)
|
|
|
|
statusproc fcron
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo "Usage: $0 {start|stop|restart|status}"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# End $rc_base/init.d/fcron
|
2003-09-19 05:21:15 +08:00
|
|
|
EOF
|
|
|
|
chmod 755 /etc/rc.d/init.d/fcron</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-19 05:21:15 +08:00
|
|
|
<para>Create the symbolic links to this file in the relevant
|
|
|
|
<filename class="directory">rc.d</filename> directory
|
|
|
|
with the following commands:</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-19 05:21:15 +08:00
|
|
|
<screen><userinput><command>cd /etc/rc.d/init.d &&
|
|
|
|
ln -sf ../init.d/fcron ../rc0.d/K08fcron &&
|
|
|
|
ln -sf ../init.d/fcron ../rc2.d/S40fcron &&
|
|
|
|
ln -sf ../init.d/fcron ../rc3.d/S40fcron &&
|
|
|
|
ln -sf ../init.d/fcron ../rc4.d/S40fcron &&
|
|
|
|
ln -sf ../init.d/fcron ../rc5.d/S40fcron &&
|
|
|
|
ln -sf ../init.d/fcron ../rc6.d/K08fcron</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-19 05:21:15 +08:00
|
|
|
</sect3>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect2>
|