opt/fcron/fcron
Juergen Daubert 3417cac635 fcron: use systab, use fcron user
I take the opportunity of the CRUX 2.5 release change to do two
long standing adjustments:

* use a determinded user fcron
* use systab instead of root for system crontab
2008-11-24 09:32:43 +01:00

27 lines
327 B
Bash

#!/bin/sh
#
# /etc/rc.d/fcron: start/stop fcron daemon
#
case $1 in
start)
/usr/sbin/fcron -b
if [ ! -f /var/spool/fcron/systab ]; then
/usr/bin/fcrontab -u systab -z
fi
;;
stop)
killall -q /usr/sbin/fcron
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file