summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/at/files/S99at
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/at/files/S99at')
-rw-r--r--meta/recipes-extended/at/files/S99at39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-extended/at/files/S99at b/meta/recipes-extended/at/files/S99at
new file mode 100644
index 0000000000..bcfcbdae21
--- /dev/null
+++ b/meta/recipes-extended/at/files/S99at
@@ -0,0 +1,39 @@
1#!/bin/sh
2#
3# Starts at daemon
4#
5
6umask 077
7
8start() {
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}
13stop() {
14 echo -n "Stopping atd: "
15 start-stop-daemon --stop --quiet --pidfile /var/run/atd.pid
16 echo "OK"
17}
18restart() {
19 stop
20 start
21}
22
23case "$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
36esac
37
38exit $?
39