* [PATCH] xinetd: add status of init.d command
@ 2013-11-26 8:57 jackie.huang
2013-11-26 10:17 ` jhuang0
0 siblings, 1 reply; 3+ messages in thread
From: jackie.huang @ 2013-11-26 8:57 UTC (permalink / raw)
To: openembedded-core
From: Li Wang <li.wang@windriver.com>
CQID: WIND00439690
Signed-off-by: Li Wang <li.wang@windriver.com>
---
meta/recipes-extended/xinetd/xinetd/xinetd.init | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-extended/xinetd/xinetd/xinetd.init b/meta/recipes-extended/xinetd/xinetd/xinetd.init
index 26dbea7..777c2c8 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
--
1.8.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] xinetd: add status of init.d command
2013-11-26 8:57 [PATCH] xinetd: add status of init.d command jackie.huang
@ 2013-11-26 10:17 ` jhuang0
0 siblings, 0 replies; 3+ messages in thread
From: jhuang0 @ 2013-11-26 10:17 UTC (permalink / raw)
To: openembedded-core
On 11/26/2013 4:57 PM, jackie.huang@windriver.com wrote:
> From: Li Wang <li.wang@windriver.com>
>
> CQID: WIND00439690
Sorry forgot to remove this, I will re-send.
Thanks,
Jackie
>
> Signed-off-by: Li Wang <li.wang@windriver.com>
> ---
> meta/recipes-extended/xinetd/xinetd/xinetd.init | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-extended/xinetd/xinetd/xinetd.init b/meta/recipes-extended/xinetd/xinetd/xinetd.init
> index 26dbea7..777c2c8 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
>
--
Jackie Huang
WIND RIVER | China Development Center
MSN:jackielily@hotmail.com
Tel: +86 8477 8594
Mobile: +86 138 1027 4745
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] xinetd: add status of init.d command
@ 2013-11-26 10:18 jackie.huang
0 siblings, 0 replies; 3+ messages in thread
From: jackie.huang @ 2013-11-26 10:18 UTC (permalink / raw)
To: openembedded-core
From: Li Wang <li.wang@windriver.com>
Signed-off-by: Li Wang <li.wang@windriver.com>
---
meta/recipes-extended/xinetd/xinetd/xinetd.init | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-extended/xinetd/xinetd/xinetd.init b/meta/recipes-extended/xinetd/xinetd/xinetd.init
index 26dbea7..777c2c8 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
--
1.8.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-26 10:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-26 8:57 [PATCH] xinetd: add status of init.d command jackie.huang
2013-11-26 10:17 ` jhuang0
-- strict thread matches above, loose matches on Subject: below --
2013-11-26 10:18 jackie.huang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox