[sheepdog] [PATCH] use systemd restart ability to monitor sheepdog daemon

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Mon Dec 8 05:11:58 CET 2014


At Fri,  5 Dec 2014 15:28:58 +0300,
Vasiliy Tolstov wrote:
> 
> From: Vladislav Gorbunov <vadikgo at gmail.com>
> 
> Restart sheepdog if the service process exits due to an uncaught signal
> not specified as a clean exit status.
> 
> Signed-off-by: Vladislav Gorbunov <vadikgo at gmail.com>
> Reviewed-by: Vasiliy Tolstov <v.tolstov at selfip.ru>
> ---
>  script/sheepdog.service.in | 3 +++
>  1 file changed, 3 insertions(+)

Applied, thanks.
Hitoshi

> 
> diff --git a/script/sheepdog.service.in b/script/sheepdog.service.in
> index e7600cc..1da6f37 100644
> --- a/script/sheepdog.service.in
> +++ b/script/sheepdog.service.in
> @@ -10,6 +10,9 @@ EnvironmentFile=- at SYSCONFDIR@/default/sheepdog
>  ExecStart=/bin/sh -c '@SBINDIR@/sheep --pidfile @LOCALSTATEDIR@/run/sheep.pid $(if [ -z "$SHEEP_OPTS" ]; then echo "--cluster local --log dst=syslog --upgrade @LOCALSTATEDIR@/lib/sheepdog"; else echo $SHEEP_OPTS; fi)'
>  PIDFile=@LOCALSTATEDIR@/run/sheep.pid
>  Type=forking
> +Restart=on-abort
> +StartLimitInterval=10s
> +StartLimitBurst=3
>  
>  [Install]
>  WantedBy=multi-user.target
> -- 
> 2.1.3
> 
> -- 
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog



More information about the sheepdog mailing list