#!/bin/bash #%rlevels: 0:k 1:k 2:k 3:s 4:k 5:s 6:k #%start: 26 #%stop: 45 #deps #%needs: #%before: #%after: source /etc/conf.d/rc source $rc_functions case "$1" in start) echo -e ${COLOREDSTAR}"Starting fcron daemon ..." start-stop-daemon --start --quiet --exec /usr/sbin/fcron evaluate_retval update_svcstatus $1 splash svc_started "$(basename $0)" 0 ;; stop) echo -e ${COLOREDSTAR}"Stopping fcron daemon ..." start-stop-daemon --stop --quiet --pidfile /var/run/fcron.pid evaluate_retval update_svcstatus $1 splash svc_stopped "$(basename $0)" 0 ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc fcron ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 ;; esac