initial checkin of new hdw-linux development cvs repository
[hdw-linux/hdw-linux.git] / misc / sysfiles / etc / init.d / cron
1 #!/bin/sh
2 #
3 # hdw - linux /etc/init.d/cron  (copied from ROCK Linux)
4 #
5 # daemon to execute scheduled commands
6 #
7
8 test -f /usr/sbin/cron || exit 0
9
10 case "$1"
11 in
12         start)
13                 echo "Starting cron."
14                 /usr/sbin/cron
15                 ;;
16         stop)
17                 echo "Stopping cron."
18                 killall -15 /usr/sbin/cron
19                 ;;
20         restart)
21                 $0 stop ; $0 start ;;
22         *)
23                 echo "Usage: $0 { start | restart | stop }" ; exit 1 ;;
24 esac
25
26 exit 0