[oe] [meta-networking] radvd: eliminate confusing warnings when stop service
Joe MacDonald
joe at deserted.net
Fri Mar 14 14:29:58 UTC 2014
Merged, thanks.
-J.
[[meta-networking] radvd: eliminate confusing warnings when stop service] On 14.03.12 (Wed 12:29) Liang Li wrote:
> When run 'service radvd stop' in case radvd is not started/running,
> we'll get warnings like this:
>
> Stopping radvd: no /usr/sbin/radvd found; none killed
> /etc/init.d/radvd: warning: cannot restore settings
> radvd.
>
> We could by pass these OPs by just check if the service is running
> or not so eliminate possible warnings.
>
> Signed-off-by: Liang Li <liang.li at windriver.com>
>
> ---
> recipes-daemons/radvd/files/radvd.init | 4 ++++
> 1 ????????? 4 ?(+)
>
> diff --git a/meta-networking/recipes-daemons/radvd/files/radvd.init b/meta-networking/recipes-daemons/radvd/files/radvd.init
> index 921384c..5295292 100755
> --- a/meta-networking/recipes-daemons/radvd/files/radvd.init
> +++ b/meta-networking/recipes-daemons/radvd/files/radvd.init
> @@ -92,6 +92,10 @@ case "$1" in
> ;;
> stop)
> echo -n "Stopping $DESC: "
> + if ! [ -f $PIDFILE ] ; then
> + echo "not running."
> + exit 0
> + fi
> start-stop-daemon --oknodo --stop --pidfile $PIDFILE \
> --exec $DAEMON
> restore_settings $SAVED_SETTINGS
--
-Joe MacDonald.
:wq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20140314/15e04614/attachment-0002.sig>
More information about the Openembedded-devel
mailing list