summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/at/at/atd.init
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
committerTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
commit972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch)
tree97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-extended/at/at/atd.init
downloadpoky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-extended/at/at/atd.init')
-rw-r--r--meta/recipes-extended/at/at/atd.init45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-extended/at/at/atd.init b/meta/recipes-extended/at/at/atd.init
new file mode 100644
index 0000000000..eca379b3cd
--- /dev/null
+++ b/meta/recipes-extended/at/at/atd.init
@@ -0,0 +1,45 @@
1#!/bin/sh
2#
3# Starts at daemon
4#
5
6umask 077
7
8# Source function library.
9. /etc/init.d/functions
10
11start() {
12 echo -n "Starting atd: "
13 start-stop-daemon --start --quiet --pidfile /var/run/atd.pid --background --exec /usr/sbin/atd -- -f
14 echo "OK"
15}
16stop() {
17 echo -n "Stopping atd: "
18 start-stop-daemon --stop --quiet --pidfile /var/run/atd.pid
19 echo "OK"
20}
21restart() {
22 stop
23 start
24}
25
26case "$1" in
27 start)
28 start
29 ;;
30 stop)
31 stop
32 ;;
33 restart|reload)
34 restart
35 ;;
36 status)
37 status /usr/sbin/atd
38 ;;
39 *)
40 echo $"Usage: $0 {start|stop|restart|status}"
41 exit 1
42esac
43
44exit $?
45