summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorLi Wang <li.wang@windriver.com>2013-11-26 18:18:26 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-14 09:11:11 +0000
commitc0d28b45d56f95555025cb58bb7247a8281042ea (patch)
tree4cb3bb91fd047db07c04b5e304f274b0229e5fe9 /meta/recipes-extended
parentb53a0117c8bc75d98722ea9ca8363db9c22b0aa8 (diff)
downloadpoky-c0d28b45d56f95555025cb58bb7247a8281042ea.tar.gz
xinetd: add status of init.d command
(From OE-Core rev: 05c3bad6835d7e51b20e23ffd7708545b1ed81a1) Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/xinetd/xinetd/xinetd.init9
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 @@
2# 2#
3# /etc/init.d/xinetd -- script to start and stop xinetd. 3# /etc/init.d/xinetd -- script to start and stop xinetd.
4 4
5# Source function library.
6. /etc/init.d/functions
7
5if test -f /etc/default/xinetd; then 8if test -f /etc/default/xinetd; then
6 . /etc/default/xinetd 9 . /etc/default/xinetd
7fi 10fi
@@ -33,6 +36,10 @@ case "$1" in
33 start-stop-daemon --stop --signal 3 --quiet --exec /usr/sbin/xinetd 36 start-stop-daemon --stop --signal 3 --quiet --exec /usr/sbin/xinetd
34 echo "." 37 echo "."
35 ;; 38 ;;
39 status)
40 status /usr/sbin/xinetd;
41 exit $?
42 ;;
36 reload) 43 reload)
37 echo -n "Reloading internet superserver configuration: xinetd" 44 echo -n "Reloading internet superserver configuration: xinetd"
38 start-stop-daemon --stop --signal 1 --quiet --exec /usr/sbin/xinetd 45 start-stop-daemon --stop --signal 1 --quiet --exec /usr/sbin/xinetd
@@ -49,7 +56,7 @@ case "$1" in
49 $0 start 56 $0 start
50 ;; 57 ;;
51 *) 58 *)
52 echo "Usage: /etc/init.d/xinetd {start|stop|reload|force-reload|restart}" 59 echo "Usage: /etc/init.d/xinetd {start|stop|status|reload|force-reload|restart}"
53 exit 1 60 exit 1
54 ;; 61 ;;
55esac 62esac