The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / at / S99at
1 #!/bin/sh
2 #
3 # Starts at daemon
4 #
5
6 umask 077
7
8 start() {
9         echo -n "Starting atd: "
10         start-stop-daemon --start --quiet --make-pidfile --pidfile /var/run/atd.pid --background --exec /usr/sbin/atd -- -f
11         echo "OK"
12 }
13 stop() {
14         echo -n "Stopping atd: "
15         start-stop-daemon --stop --quiet --pidfile /var/run/atd.pid
16         echo "OK"
17 }
18 restart() {
19         stop
20         start
21 }
22
23 case "$1" in
24   start)
25         start
26         ;;
27   stop)
28         stop
29         ;;
30   restart|reload)
31         restart
32         ;;
33   *)
34         echo "Usage: $0 {start|stop|restart}"
35         exit 1
36 esac
37
38 exit $?