[oe-commits] Jackie Huang : at: add init.d/atd status command for LSB compliance
git at git.openembedded.org
git at git.openembedded.org
Mon Aug 26 10:19:15 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: 9c19592afac6b38df7038da02bcda26dc28b4e4c
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=9c19592afac6b38df7038da02bcda26dc28b4e4c
Author: Jackie Huang <jackie.huang at windriver.com>
Date: Mon Aug 19 05:25:52 2013 -0400
at: add init.d/atd status command for LSB compliance
Signed-off-by: Li Wang <li.wang at windriver.com>
Signed-off-by: Jackie Huang <jackie.huang at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-extended/at/files/S99at | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/meta/recipes-extended/at/files/S99at b/meta/recipes-extended/at/files/S99at
index 386f8a4..eca379b 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
More information about the Openembedded-commits
mailing list