diff options
author | Li Wang <li.wang@windriver.com> | 2013-11-26 18:18:26 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-14 09:09:32 +0000 |
commit | 05c3bad6835d7e51b20e23ffd7708545b1ed81a1 (patch) | |
tree | de912858614804e408ccd7bf6fcf55316deeca88 /meta/recipes-extended/xinetd | |
parent | 1254416901a0c70814296a86784f4934f27c7d4a (diff) | |
download | openembedded-core-05c3bad6835d7e51b20e23ffd7708545b1ed81a1.tar.gz openembedded-core-05c3bad6835d7e51b20e23ffd7708545b1ed81a1.tar.bz2 openembedded-core-05c3bad6835d7e51b20e23ffd7708545b1ed81a1.zip |
xinetd: add status of init.d command
Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended/xinetd')
-rw-r--r-- | meta/recipes-extended/xinetd/xinetd/xinetd.init | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/recipes-extended/xinetd/xinetd/xinetd.init b/meta/recipes-extended/xinetd/xinetd/xinetd.init index 26dbea7415..777c2c8b46 100644 --- a/meta/recipes-extended/xinetd/xinetd/xinetd.init +++ b/meta/recipes-extended/xinetd/xinetd/xinetd.init @@ -2,6 +2,9 @@ # # /etc/init.d/xinetd -- script to start and stop xinetd. +# Source function library. +. /etc/init.d/functions + if test -f /etc/default/xinetd; then . /etc/default/xinetd fi @@ -33,6 +36,10 @@ case "$1" in start-stop-daemon --stop --signal 3 --quiet --exec /usr/sbin/xinetd echo "." ;; + status) + status /usr/sbin/xinetd; + exit $? + ;; reload) echo -n "Reloading internet superserver configuration: xinetd" start-stop-daemon --stop --signal 1 --quiet --exec /usr/sbin/xinetd @@ -49,7 +56,7 @@ case "$1" in $0 start ;; *) - echo "Usage: /etc/init.d/xinetd {start|stop|reload|force-reload|restart}" + echo "Usage: /etc/init.d/xinetd {start|stop|status|reload|force-reload|restart}" exit 1 ;; esac |