2014-07-17 11:34:08 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
2015-10-03 23:29:57 +02:00
|
|
|
printf "Starting cron ... "
|
2014-07-17 11:34:08 +02:00
|
|
|
start-stop-daemon -S -q -m -b -p /var/run/dcron.pid --exec /usr/sbin/crond -- -f
|
|
|
|
echo "done."
|
|
|
|
;;
|
|
|
|
stop)
|
2015-10-03 23:29:57 +02:00
|
|
|
printf "Stopping cron ..."
|
2014-07-17 11:34:08 +02:00
|
|
|
start-stop-daemon -K -q -p /var/run/dcron.pid
|
|
|
|
echo "done."
|
|
|
|
;;
|
|
|
|
restart)
|
|
|
|
$0 stop
|
|
|
|
sleep 1
|
|
|
|
$0 start
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "usage: $0 {start|stop|restart}"
|
|
|
|
;;
|
|
|
|
esac
|