[oe] [PATCH] ypbind-yocto.init: add status command

Rongqing Li rongqing.li at windriver.com
Wed Aug 12 01:20:32 UTC 2015



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 at windriver.com wrote:
>>> From: Zhu Yanjun <yanjun.zhu at windriver.com>
>>>
>>> Add the "status" command to check the status of ypbind.
>>>
>>> Signed-off-by: Zhu Yanjun <yanjun.zhu at 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



More information about the Openembedded-devel mailing list