diff options
-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 | ||