Patchwork [5/6] at: add init.d/atd status command for LSB compliance

login
register
mail settings
Submitter jackie huang
Date Aug. 22, 2013, 6:17 a.m.
Message ID <4d79a46c09b6729f43132c4a0fee86fb5958a526.1377151850.git.jackie.huang@windriver.com>
Download mbox | patch
Permalink /patch/56161/
State Accepted
Commit 9c19592afac6b38df7038da02bcda26dc28b4e4c
Headers show

Comments

jackie huang - Aug. 22, 2013, 6:17 a.m.
From: Jackie Huang <jackie.huang@windriver.com>

Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
 meta/recipes-extended/at/files/S99at |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

Patch

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