]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/at/S99at
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / at / S99at
1 #!/bin/sh
2 #
3 # Starts at daemon
4 #
5
6 umask 077
7
8 start() {
9         printf "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         printf "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 $?