add an own version of `autopoint' which works well here
[dragora.git] / archive / scron / rc.main
blob67396690f605ac37908b9846a27c2f19b31ed490
1 #! /bin/sh -
3 # crond/rc.main
5 # Suckless cron daemon.
8 # Redirects the standard error to the standard output
9 exec 2>&1
11 TARGET="$1"
12 SVNAME="${2:-crond}"
14 start()
16 echo "*** ${SVNAME}: Starting crond ..."
17 exec /usr/bin/crond -n -f /etc/crontab
20 reset()
22 case $3 in
23 exit)
24 echo "*** ${SVNAME}: Exited status $4"
26 signal)
27 echo "*** ${SVNAME}: Killed on signal $5"
30 echo "*** ${SVNAME}: Stopped (${3})"
32 esac
35 # Branch to target
36 eval ${TARGET} "$@"