summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2013-08-19 05:25:52 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-26 11:47:17 +0100
commit6d15552f8c851e03fbd9799de055cbdb6f8b0ffa (patch)
treeea59a8d221c35659b7ccc864ec9a00bb329ec87f
parent1b125078b73aa11eda65f98c5700391c27c5a180 (diff)
downloadpoky-6d15552f8c851e03fbd9799de055cbdb6f8b0ffa.tar.gz
at: add init.d/atd status command for LSB compliance
(From OE-Core rev: 9c19592afac6b38df7038da02bcda26dc28b4e4c) Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/at/files/S99at8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-extended/at/files/S99at b/meta/recipes-extended/at/files/S99at
index 386f8a497e..eca379b3cd 100644
--- a/meta/recipes-extended/at/files/S99at
+++ b/meta/recipes-extended/at/files/S99at
@@ -5,6 +5,9 @@
5 5
6umask 077 6umask 077
7 7
8# Source function library.
9. /etc/init.d/functions
10
8start() { 11start() {
9 echo -n "Starting atd: " 12 echo -n "Starting atd: "
10 start-stop-daemon --start --quiet --pidfile /var/run/atd.pid --background --exec /usr/sbin/atd -- -f 13 start-stop-daemon --start --quiet --pidfile /var/run/atd.pid --background --exec /usr/sbin/atd -- -f
@@ -30,8 +33,11 @@ case "$1" in
30 restart|reload) 33 restart|reload)
31 restart 34 restart
32 ;; 35 ;;
36 status)
37 status /usr/sbin/atd
38 ;;
33 *) 39 *)
34 echo $"Usage: $0 {start|stop|restart}" 40 echo $"Usage: $0 {start|stop|restart|status}"
35 exit 1 41 exit 1
36esac 42esac
37 43