xinetd: add status of init.d command
PATCH 1/1 xinetd: add status of init.d command
From: Li Wang <[email protected]>
CQID: WIND00439690
Signed-off-by Li Wang <[email protected]>
--- meta/recipes-extended/xinetd/xinetd/xinetd.init | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
meta/recipes-extended/xinetd/xinetd/xinetd.init +8 -1
@@ -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
Signature · 1 line
1.8.3
Quoted 3 lines · On 11/26/2013 4:57 PM, [email protected] wrote:
From: Li Wang <[email protected]>
CQID: WIND00439690
Sorry forgot to remove this, I will re-send.
Thanks,
Jackie
Quoted 41 lines
Signed-off-by Li Wang <[email protected]>--- meta/recipes-extended/xinetd/xinetd/xinetd.init | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)meta/recipes-extended/xinetd/xinetd/xinetd.init +8
-1@@ -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
Signature · 5 lines
Jackie Huang WIND RIVER | China Development Center MSN:[email protected] Tel: +86 8477 8594 Mobile: +86 138 1027 4745