Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Rongqing Li <rongqing.li@windriver.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: Re: [PATCH] ypbind-yocto.init: add status command
Date: Tue, 11 Aug 2015 13:24:10 +0800	[thread overview]
Message-ID: <55C986FA.9050404@windriver.com> (raw)
In-Reply-To: <1436171379-32162-1-git-send-email-rongqing.li@windriver.com>

ping

-Roy

On 2015年07月06日 16:29, rongqing.li@windriver.com wrote:
> From: Zhu Yanjun <yanjun.zhu@windriver.com>
>
> Add the "status" command to check the status of ypbind.
>
> Signed-off-by: Zhu Yanjun <yanjun.zhu@windriver.com>
> ---
>   meta-networking/recipes-support/nis/files/ypbind-yocto.init | 7 +++++++
>   1 file changed, 7 insertions(+)
>
> diff --git a/meta-networking/recipes-support/nis/files/ypbind-yocto.init b/meta-networking/recipes-support/nis/files/ypbind-yocto.init
> index 5f50a53..da533a1 100644
> --- a/meta-networking/recipes-support/nis/files/ypbind-yocto.init
> +++ b/meta-networking/recipes-support/nis/files/ypbind-yocto.init
> @@ -21,6 +21,9 @@
>   #	the NIS binding information.
>   ### END INIT INFO
>
> +# Need to use status function
> +. /etc/init.d/functions
> +
>   YPBIND_BIN=/usr/sbin/ypbind
>   pidfile=/var/run/ypbind.pid
>
> @@ -92,6 +95,10 @@ case "$1" in
>   	echo -n "Reload service ypbind"
>   	start-stop-daemon --stop --quiet --signal 1 --pidfile $pidfile
>   	;;
> +    status)
> +	echo -n "Checking for ypbind: "
> +	status $YPBIND_BIN
> +	;;
>       *)
>   	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
>   	exit 1
>

-- 
Best Reagrds,
Roy | RongQing Li


  reply	other threads:[~2015-08-11  5:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-06  8:29 [PATCH] ypbind-yocto.init: add status command rongqing.li
2015-08-11  5:24 ` Rongqing Li [this message]
2015-08-11 12:30   ` Koen Kooi
2015-08-12  1:01     ` Rongqing Li
2015-08-12  1:20     ` Rongqing Li
2015-08-12 11:10       ` Paul Eggleton
2015-08-13  0:08         ` Rongqing Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55C986FA.9050404@windriver.com \
    --to=rongqing.li@windriver.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox