summaryrefslogtreecommitdiff
path: root/meta/recipes-extended/sysklogd
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2013-08-19 06:08:56 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-26 11:26:00 +0100
commit7f0314c095032c231e2408c0276fea56b4e68884 (patch)
tree90dac9adbf9a06e08e535e9fcf8e8b71d37e91e5 /meta/recipes-extended/sysklogd
parent38b6c4df7c215ed7fd6be107fbc2527e66791e2e (diff)
downloadopenembedded-core-7f0314c095032c231e2408c0276fea56b4e68884.tar.gz
openembedded-core-7f0314c095032c231e2408c0276fea56b4e68884.tar.bz2
openembedded-core-7f0314c095032c231e2408c0276fea56b4e68884.zip
sysklogd: add init.d/syslog status command for LSB compliance
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>
Diffstat (limited to 'meta/recipes-extended/sysklogd')
-rwxr-xr-xmeta/recipes-extended/sysklogd/files/sysklogd13
1 files changed, 12 insertions, 1 deletions
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