diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2013-08-21 01:32:27 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-26 11:47:17 +0100 |
commit | 1b125078b73aa11eda65f98c5700391c27c5a180 (patch) | |
tree | 013ec4529baaf7e0fbe62abeae846dedc635c324 | |
parent | 00f0261536ee183fd3857d8999aa978cfc2c3b09 (diff) | |
download | poky-1b125078b73aa11eda65f98c5700391c27c5a180.tar.gz |
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>
-rwxr-xr-x | meta/recipes-core/sysvinit/sysvinit/bootlogd.init | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit/bootlogd.init b/meta/recipes-core/sysvinit/sysvinit/bootlogd.init index f8f07a050f..7b87827fdf 100755 --- a/meta/recipes-core/sysvinit/sysvinit/bootlogd.init +++ b/meta/recipes-core/sysvinit/sysvinit/bootlogd.init | |||
@@ -13,6 +13,9 @@ DAEMON=/sbin/bootlogd | |||
13 | NAME=bootlogd | 13 | NAME=bootlogd |
14 | DESC="Bootlog daemon" | 14 | DESC="Bootlog daemon" |
15 | 15 | ||
16 | # source function library | ||
17 | . /etc/init.d/functions | ||
18 | |||
16 | test -f $DAEMON || exit 0 | 19 | test -f $DAEMON || exit 0 |
17 | 20 | ||
18 | [ -r /etc/default/bootlogd ] && . /etc/default/bootlogd | 21 | [ -r /etc/default/bootlogd ] && . /etc/default/bootlogd |
@@ -73,10 +76,14 @@ case "$ACTION" in | |||
73 | start-stop-daemon --start --quiet --exec $DAEMON | 76 | start-stop-daemon --start --quiet --exec $DAEMON |
74 | echo "$NAME." | 77 | echo "$NAME." |
75 | ;; | 78 | ;; |
79 | status) | ||
80 | status $DAEMON | ||
81 | exit $? | ||
82 | ;; | ||
76 | *) | 83 | *) |
77 | N=${0##*/} | 84 | N=${0##*/} |
78 | N=${N#[SK]??} | 85 | N=${N#[SK]??} |
79 | echo "Usage: $N {start|stop|restart|force-reload}" >&2 | 86 | echo "Usage: $N {start|stop|status|restart|force-reload}" >&2 |
80 | exit 1 | 87 | exit 1 |
81 | ;; | 88 | ;; |
82 | esac | 89 | esac |