summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
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:26:01 +0100
commit9c19592afac6b38df7038da02bcda26dc28b4e4c (patch)
tree7f85e05174d08475ed62b2bd9a05bd80e44a54a3 /meta/recipes-extended
parent95180b966adb6ebe6451ab0e91187e7db93f22e4 (diff)
downloadopenembedded-core-9c19592afac6b38df7038da02bcda26dc28b4e4c.tar.gz
openembedded-core-9c19592afac6b38df7038da02bcda26dc28b4e4c.tar.bz2
openembedded-core-9c19592afac6b38df7038da02bcda26dc28b4e4c.zip
at: add init.d/atd status command for LSB compliance
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>
Diffstat (limited to 'meta/recipes-extended')
-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 @@
umask 077
+# Source function library.
+. /etc/init.d/functions
+
start() {
echo -n "Starting atd: "
start-stop-daemon --start --quiet --pidfile /var/run/atd.pid --background --exec /usr/sbin/atd -- -f
@@ -30,8 +33,11 @@ case "$1" in
restart|reload)
restart
;;
+ status)
+ status /usr/sbin/atd
+ ;;
*)
- echo $"Usage: $0 {start|stop|restart}"
+ echo $"Usage: $0 {start|stop|restart|status}"
exit 1
esac