Configuring Fcron
Config files
/etc/fcron.conf,
/etc/fcron.allow,
/etc/fcron.deny
Configuration Information
There are no required changes in any of the config 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.
Create the boot script with the following:
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
Create the symbolic links to this file in the relevant
rc.d directory
with the following commands:
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