From 00f0261536ee183fd3857d8999aa978cfc2c3b09 Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Mon, 19 Aug 2013 04:22:26 -0400 Subject: dbus: add init.d/dbus-1 status command for LSB compliance (From OE-Core rev: 9262d3b06eee7e698c990399d2f10b7d68d17211) Signed-off-by: Li Wang Signed-off-by: Jackie Huang Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/recipes-core/dbus/dbus-1.6.10/dbus-1.init | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'meta/recipes-core/dbus') 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 0351190af7..04025e65f8 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 -- cgit v1.2.3-54-g00ecf