summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core')
-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