X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fbootscripts%2Ffcron;h=a34a0f71728bb82035ff6778a8c69cef42cd8e90;hb=23534737a153c4084e3dd44a3e6cdcf2537aee01;hp=d26e880c0559ccec1eafa9d324c821b3a83d8383;hpb=9e3f8101a7e4d974db8e9afeb9c90c13a43ae8d7;p=hvlinux.git diff --git a/stage3/bootscripts/fcron b/stage3/bootscripts/fcron index d26e880..a34a0f7 100755 --- a/stage3/bootscripts/fcron +++ b/stage3/bootscripts/fcron @@ -7,30 +7,40 @@ source /etc/rc.d/init.d/functions log_script_name "$0 $*" +DAEMON=/usr/sbin/fcron +DAEMON_DESC="fcron daemon" +DAEMON_OPTS="-b -c /etc/fcron/fcron.conf" + +fcron_start() +{ + /etc/fcron/configure + loadproc ${DAEMON} ${DAEMON_OPTS} +} + # See how we were called. case "$1" in start) - cmd_run_log_box_warn "Starting fcron" loadproc fcron -b -c /etc/fcron/fcron.conf + cmd_run_log_box_warn "${DAEMON_DESC} start" fcron_start ;; - + stop) - cmd_run_log_box_warn "Stopping fcron" killproc fcron + cmd_run_log_box_warn "${DAEMON_DESC} stop" killproc ${DAEMON} ;; - + reload) - cmd_run_log_box_warn "reloading fcron" reloadproc fcron + cmd_run_log_box_warn "${DAEMON_DESC} reload" reloadproc ${DAEMON} ;; - + restart) $0 stop sleep 1 $0 start ;; - + status) - statusproc fcron + statusproc ${DAEMON} ;; - + *) echo "Usage: $0 {start|stop|reload|restart|status}" exit ${EXIT_CODE_FAILURE}