#!/bin/sh ######################################################################## # Begin fcron # # Description : Fcron cron init script # # Author : Name - name@linuxfromscratch.org # # Version : BLFS 7.0 # ######################################################################## ### BEGIN INIT INFO # Provides: fcron # Required-Start: $local_fs $network # Should-Start: networkmanager wicd # Required-Stop: $local_fs $network # Should-Stop: networkmanager wicd # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Starts fcron. # Description: Starts fcron daemon. # X-LFS-Provided-By: BLFS ### END INIT INFO . /lib/lsb/init-functions BIN_FILE="/usr/sbin/fcron" case "$1" in start) log_info_msg "Starting fcron..." start_daemon ${BIN_FILE} evaluate_retval ;; stop) log_info_msg "Stopping fcron..." killproc ${BIN_FILE} evaluate_retval ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc ${BIN_FILE} ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 ;; esac # End /etc/init.d/fcron