sysvinit: add init.d/bootlogd status command for LSB compliance

(From OE-Core rev: 95180b966adb6ebe6451ab0e91187e7db93f22e4)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Jackie Huang 2013-08-21 01:32:27 -04:00 committed by Richard Purdie
parent 00f0261536
commit 1b125078b7
1 changed files with 8 additions and 1 deletions

View File

@ -13,6 +13,9 @@ DAEMON=/sbin/bootlogd
NAME=bootlogd NAME=bootlogd
DESC="Bootlog daemon" DESC="Bootlog daemon"
# source function library
. /etc/init.d/functions
test -f $DAEMON || exit 0 test -f $DAEMON || exit 0
[ -r /etc/default/bootlogd ] && . /etc/default/bootlogd [ -r /etc/default/bootlogd ] && . /etc/default/bootlogd
@ -73,10 +76,14 @@ case "$ACTION" in
start-stop-daemon --start --quiet --exec $DAEMON start-stop-daemon --start --quiet --exec $DAEMON
echo "$NAME." echo "$NAME."
;; ;;
status)
status $DAEMON
exit $?
;;
*) *)
N=${0##*/} N=${0##*/}
N=${N#[SK]??} N=${N#[SK]??}
echo "Usage: $N {start|stop|restart|force-reload}" >&2 echo "Usage: $N {start|stop|status|restart|force-reload}" >&2
exit 1 exit 1
;; ;;
esac esac