glfs/general/sysutils/fcron/fcron-config.xml
Igor Živković 292bc8bf71 updated instructions for fcron
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1108 af4574ff-66df-0310-9fd7-8a98e5e911e0
2003-09-18 21:21:15 +00:00

79 lines
2.0 KiB
XML

<sect2>
<title>Configuring fcron</title>
<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 &gt; /etc/rc.d/init.d/fcron &lt;&lt; "EOF"
#!/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
EOF
chmod 755 /etc/rc.d/init.d/fcron</command></userinput></screen>
<para>Create the symbolic links to this file in the relevant
<filename class="directory">rc.d</filename> directory
with the following commands:</para>
<screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
ln -sf ../init.d/fcron ../rc0.d/K08fcron &amp;&amp;
ln -sf ../init.d/fcron ../rc2.d/S40fcron &amp;&amp;
ln -sf ../init.d/fcron ../rc3.d/S40fcron &amp;&amp;
ln -sf ../init.d/fcron ../rc4.d/S40fcron &amp;&amp;
ln -sf ../init.d/fcron ../rc5.d/S40fcron &amp;&amp;
ln -sf ../init.d/fcron ../rc6.d/K08fcron</command></userinput></screen>
</sect3>
</sect2>