summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2013-08-21 01:32:27 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-26 11:47:17 +0100
commit1b125078b73aa11eda65f98c5700391c27c5a180 (patch)
tree013ec4529baaf7e0fbe62abeae846dedc635c324
parent00f0261536ee183fd3857d8999aa978cfc2c3b09 (diff)
downloadpoky-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-xmeta/recipes-core/sysvinit/sysvinit/bootlogd.init9
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
13NAME=bootlogd 13NAME=bootlogd
14DESC="Bootlog daemon" 14DESC="Bootlog daemon"
15 15
16# source function library
17. /etc/init.d/functions
18
16test -f $DAEMON || exit 0 19test -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 ;;
82esac 89esac