recipes: optimize lzlib and plzip
[dragora.git] / archive / at / rc.main
blob0be2bff76fb7c97f93816fc964f590987a52c919
1 #! /bin/sh -
3 # atd/rc.main
5 # Run jobs queued for later execution.
8 # Redirects the standard error to the standard output
9 exec 2>&1
11 TARGET="$1"
12 SVNAME="${2:-atd}"
14 start()
16 echo "*** ${SVNAME}: Starting atd ..."
17 exec /usr/sbin/atd -d
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} "$@"