[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#828177: jessie-pu: package unbound/1.4.22-3+deb8u2



Julien Cristau wrote:
> May I take the opportunity to ask you to also fix the 'stop' action from
> the init script?
> 
> We've been using this patch on the debian.org hosts for a year now.
> Previously restarting the service would quite often result in no running
> unbound, because (AIUI) systemd doesn't use the init script 'restart'
> action (uses stop && start instead), the 'stop' action would not wait
> for the process to actually die before returning, and then 'start' would
> say "I'm already running, nothing to do".

Wow, thanks for pointing that out. Yes, I'd be happy to fix that one too
in a stable update.

> --- /tmp/unbound-1.4.22/debian/unbound.init     2016-02-22 01:43:22.000000000 +0200
> +++ modules/unbound/files/unbound.init  2015-05-17 16:50:09.699383800 +0200
> @@ -121,7 +121,7 @@
>      stop)
>          if $UNBOUND_ENABLE; then
>              log_daemon_msg "Stopping $DESC" "$NAME"
> -            if start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --name $NAME; then
> +            if start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --name $NAME --retry 5; then
>                  do_resolvconf_stop
>                  log_end_msg 0
>              else
> 
> Cheers,
> Julien

-- 
Robert Edmonds
edmonds@debian.org


Reply to: