From 7f0314c095032c231e2408c0276fea56b4e68884 Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Mon, 19 Aug 2013 06:08:56 -0400 Subject: sysklogd: add init.d/syslog status command for LSB compliance Signed-off-by: Li Wang Signed-off-by: Jackie Huang Signed-off-by: Saul Wold --- meta/recipes-extended/sysklogd/files/sysklogd | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'meta/recipes-extended/sysklogd') diff --git a/meta/recipes-extended/sysklogd/files/sysklogd b/meta/recipes-extended/sysklogd/files/sysklogd index dcbc81e5a5..258f882803 100755 --- a/meta/recipes-extended/sysklogd/files/sysklogd +++ b/meta/recipes-extended/sysklogd/files/sysklogd @@ -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 -- cgit v1.2.3