Configuring fcron
make install script
After the files are installed, the make install script enters into a
configuration routine. The first test will be for a group named fcron. If
it does not exist, you will be given the command line that the script proposes
to run and a prompt for a 'y' or 'n'. This is repeated to create a user named
fcron and to install a script in the init.d directory with the appropriate
symbolic links in runlevels 2, 3, 4, and 5. The final configuration step is to
stop any current fcron processes and start the new fcron. A yes here will stop
current fcron processes and will start the new fcron. The following
commands will overwrite the fcron script with one based upon the BLFS
template:
cat > /etc/rc.d/init.d/fcron << "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 &&
mv /etc/rc.d/rc0.d/K60fcron /etc/rc.d/rc0.d/K08fcron &&
mv /etc/rc.d/rc6.d/K60fcron /etc/rc.d/rc6.d/K08fcron
Config files
/etc/fcron.conf, /etc/fcron.allow,
/etc/fcron.deny
There are no required changes in any of these files.
Configuration information can be found in the man page for
fcron.conf.
fcron scripts are written using fcrontab. Refer to the man page
for fcrontab for proper parameters for your situation.