diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2013-08-19 06:08:56 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-26 11:47:17 +0100 |
commit | 4309a9ea8f4cdb271a7df658616ec3daacbb684d (patch) | |
tree | 8eb43c99acb8b615e242815df19ac56c4aaa2730 /meta | |
parent | 2b7d2f8034d0a008a1ab853e5f05a4d4162ccbc2 (diff) | |
download | poky-4309a9ea8f4cdb271a7df658616ec3daacbb684d.tar.gz |
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>
Diffstat (limited to 'meta')
-rwxr-xr-x | meta/recipes-extended/sysklogd/files/sysklogd | 13 |
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 @@ | |||
12 | # Short-Description: System logger | 12 | # Short-Description: System logger |
13 | ### END INIT INFO | 13 | ### END INIT INFO |
14 | 14 | ||
15 | # Source function library. | ||
16 | . /etc/init.d/functions | ||
17 | |||
15 | PATH=/bin:/usr/bin:/sbin:/usr/sbin | 18 | PATH=/bin:/usr/bin:/sbin:/usr/sbin |
16 | 19 | ||
17 | pidfile_syslogd=/var/run/syslogd.pid | 20 | pidfile_syslogd=/var/run/syslogd.pid |
@@ -132,8 +135,16 @@ case "$1" in | |||
132 | $0 start | 135 | $0 start |
133 | fi | 136 | fi |
134 | ;; | 137 | ;; |
138 | status) | ||
139 | status syslogd | ||
140 | RETVAL=$? | ||
141 | status klogd | ||
142 | rval=$? | ||
143 | [ $RETVAL -eq 0 ] && exit $rval | ||
144 | exit $RETVAL | ||
145 | ;; | ||
135 | *) | 146 | *) |
136 | log_success_msg "Usage: /etc/init.d/sysklogd {start|stop|reload|restart|force-reload|reload-or-restart}" | 147 | log_success_msg "Usage: /etc/init.d/sysklogd {start|stop|reload|restart|force-reload|reload-or-restart|status}" |
137 | exit 1 | 148 | exit 1 |
138 | esac | 149 | esac |
139 | 150 | ||