[oe-commits] Jackie Huang : dbus: add init.d/dbus-1 status command for LSB compliance

git at git.openembedded.org git at git.openembedded.org
Mon Aug 26 10:36:45 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 9262d3b06eee7e698c990399d2f10b7d68d17211
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=9262d3b06eee7e698c990399d2f10b7d68d17211

Author: Jackie Huang <jackie.huang at windriver.com>
Date:   Mon Aug 19 04:22:26 2013 -0400

dbus: add init.d/dbus-1 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-core/dbus/dbus-1.6.10/dbus-1.init |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-core/dbus/dbus-1.6.10/dbus-1.init b/meta/recipes-core/dbus/dbus-1.6.10/dbus-1.init
index 0351190..04025e6 100644
--- a/meta/recipes-core/dbus/dbus-1.6.10/dbus-1.init
+++ b/meta/recipes-core/dbus/dbus-1.6.10/dbus-1.init
@@ -16,6 +16,9 @@
 
 set -e
 
+# Source function library.
+. /etc/init.d/functions
+
 DAEMON=@bindir@/dbus-daemon
 NAME=dbus
 DAEMONUSER=messagebus           # must match /etc/dbus-1/system.conf
@@ -99,6 +102,10 @@ case "$1" in
   stop)
     shut_it_down
   ;;
+  status)
+    status $DAEMON
+    exit $?
+  ;;
   reload|force-reload)
     reload_it
   ;;
@@ -108,7 +115,7 @@ case "$1" in
     start_it_up
   ;;
   *)
-    echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
+    echo "Usage: /etc/init.d/$NAME {start|stop|status|restart|reload|force-reload}" >&2
     exit 1
   ;;
 esac



More information about the Openembedded-commits mailing list