sysklogd: add init.d/syslog status command for LSB compliance
(From OE-Core rev: 7f0314c095032c231e2408c0276fea56b4e68884) 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:
parent
2b7d2f8034
commit
4309a9ea8f
|
@ -12,6 +12,9 @@
|
|||
# Short-Description: System logger
|
||||
### END INIT INFO
|
||||
|
||||
# Source function library.
|
||||
. /etc/init.d/functions
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
|
||||
pidfile_syslogd=/var/run/syslogd.pid
|
||||
|
@ -132,8 +135,16 @@ case "$1" in
|
|||
$0 start
|
||||
fi
|
||||
;;
|
||||
status)
|
||||
status syslogd
|
||||
RETVAL=$?
|
||||
status klogd
|
||||
rval=$?
|
||||
[ $RETVAL -eq 0 ] && exit $rval
|
||||
exit $RETVAL
|
||||
;;
|
||||
*)
|
||||
log_success_msg "Usage: /etc/init.d/sysklogd {start|stop|reload|restart|force-reload|reload-or-restart}"
|
||||
log_success_msg "Usage: /etc/init.d/sysklogd {start|stop|reload|restart|force-reload|reload-or-restart|status}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in New Issue