#!/bin/sh # fcron # Source functions library source /etc/rc.d/init.d/functions log_script_name "$0 $*" # See how we were called. case "$1" in start) cmd_run_log_box_warn "Starting fcron" loadproc fcron -b -c /etc/fcron/fcron.conf ;; stop) cmd_run_log_box_warn "Stopping fcron" killproc fcron ;; reload) cmd_run_log_box_warn "reloading fcron" reloadproc fcron ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc fcron ;; *) echo "Usage: $0 {start|stop|reload|restart|status}" exit ${EXIT_CODE_FAILURE} ;; esac exit $?