All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ypbind-yocto.init: add status command
@ 2015-07-06  8:29 rongqing.li
  2015-08-11  5:24 ` Rongqing Li
  0 siblings, 1 reply; 7+ messages in thread
From: rongqing.li @ 2015-07-06  8:29 UTC (permalink / raw)
  To: openembedded-devel

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
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] ypbind-yocto.init: add status command
  2015-07-06  8:29 [PATCH] ypbind-yocto.init: add status command rongqing.li
@ 2015-08-11  5:24 ` Rongqing Li
  2015-08-11 12:30   ` Koen Kooi
  0 siblings, 1 reply; 7+ messages in thread
From: Rongqing Li @ 2015-08-11  5:24 UTC (permalink / raw)
  To: openembedded-devel

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] ypbind-yocto.init: add status command
  2015-08-11  5:24 ` Rongqing Li
@ 2015-08-11 12:30   ` Koen Kooi
  2015-08-12  1:01     ` Rongqing Li
  2015-08-12  1:20     ` Rongqing Li
  0 siblings, 2 replies; 7+ messages in thread
From: Koen Kooi @ 2015-08-11 12:30 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 11-08-15 om 07:24 schreef Rongqing Li:
> ping

While you're there, can you please fix the name of this file? Either change
it to 'yoctoproject' or rename it to something sensible, but the current
situation is just wrong.

> 
> -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
>> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFVyerMMkyGM64RGpERAsGEAJ4wrA9wavFzQZfyIiZwLntHXnLVPACfW0Dc
GihWGohDCHjH8dKz+cq5fLo=
=mkrk
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] ypbind-yocto.init: add status command
  2015-08-11 12:30   ` Koen Kooi
@ 2015-08-12  1:01     ` Rongqing Li
  2015-08-12  1:20     ` Rongqing Li
  1 sibling, 0 replies; 7+ messages in thread
From: Rongqing Li @ 2015-08-12  1:01 UTC (permalink / raw)
  To: openembedded-devel



On 2015年08月11日 20:30, Koen Kooi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Op 11-08-15 om 07:24 schreef Rongqing Li:
>> ping
>
> While you're there, can you please fix the name of this file? Either change
> it to 'yoctoproject' or rename it to something sensible, but the current
> situation is just wrong.


Ok, thanks

-Roy

>
>>
>> -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
>>>
>>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Darwin)
> Comment: GPGTools - http://gpgtools.org
>
> iD8DBQFVyerMMkyGM64RGpERAsGEAJ4wrA9wavFzQZfyIiZwLntHXnLVPACfW0Dc
> GihWGohDCHjH8dKz+cq5fLo=
> =mkrk
> -----END PGP SIGNATURE-----
>

-- 
Best Reagrds,
Roy | RongQing Li


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] ypbind-yocto.init: add status command
  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
  1 sibling, 1 reply; 7+ messages in thread
From: Rongqing Li @ 2015-08-12  1:20 UTC (permalink / raw)
  To: openembedded-devel



On 2015年08月11日 20:30, Koen Kooi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Op 11-08-15 om 07:24 schreef Rongqing Li:
>> ping
>
> While you're there, can you please fix the name of this file? Either change
> it to 'yoctoproject' or rename it to something sensible, but the current
> situation is just wrong.
>

I will change the title of this patch, and not rename
ypbind-yocto.init, since ypbind-yocto.init will be rename
to ypbind when it is installed into system


-Roy


>>
>> -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
>>>
>>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Darwin)
> Comment: GPGTools - http://gpgtools.org
>
> iD8DBQFVyerMMkyGM64RGpERAsGEAJ4wrA9wavFzQZfyIiZwLntHXnLVPACfW0Dc
> GihWGohDCHjH8dKz+cq5fLo=
> =mkrk
> -----END PGP SIGNATURE-----
>

-- 
Best Reagrds,
Roy | RongQing Li


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] ypbind-yocto.init: add status command
  2015-08-12  1:20     ` Rongqing Li
@ 2015-08-12 11:10       ` Paul Eggleton
  2015-08-13  0:08         ` Rongqing Li
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Eggleton @ 2015-08-12 11:10 UTC (permalink / raw)
  To: Rongqing Li; +Cc: openembedded-devel

Hi Roy,

On Wednesday 12 August 2015 09:20:32 Rongqing Li wrote:
> On 2015年08月11日 20:30, Koen Kooi wrote:
> > While you're there, can you please fix the name of this file? Either
> > change it to 'yoctoproject' or rename it to something sensible, but the
> > current situation is just wrong.
> 
> I will change the title of this patch, and not rename
> ypbind-yocto.init, since ypbind-yocto.init will be rename
> to ypbind when it is installed into system

Yes, that's clear - it's just not the right name in the metadata either. Would 
you mind simply renaming it to ypbind.init to be at least similar to other 
recipes?

Thanks,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] ypbind-yocto.init: add status command
  2015-08-12 11:10       ` Paul Eggleton
@ 2015-08-13  0:08         ` Rongqing Li
  0 siblings, 0 replies; 7+ messages in thread
From: Rongqing Li @ 2015-08-13  0:08 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: openembedded-devel



On 2015年08月12日 19:10, Paul Eggleton wrote:
> Hi Roy,
>
> On Wednesday 12 August 2015 09:20:32 Rongqing Li wrote:
>> On 2015年08月11日 20:30, Koen Kooi wrote:
>>> While you're there, can you please fix the name of this file? Either
>>> change it to 'yoctoproject' or rename it to something sensible, but the
>>> current situation is just wrong.
>>
>> I will change the title of this patch, and not rename
>> ypbind-yocto.init, since ypbind-yocto.init will be rename
>> to ypbind when it is installed into system
>
> Yes, that's clear - it's just not the right name in the metadata either. Would
> you mind simply renaming it to ypbind.init to be at least similar to other
> recipes?
>


Ok

-Roy

> Thanks,
> Paul
>

-- 
Best Reagrds,
Roy | RongQing Li


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-08-13  0:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-06  8:29 [PATCH] ypbind-yocto.init: add status command rongqing.li
2015-08-11  5:24 ` Rongqing Li
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.