[sheepdog] [PATCH] Restart sheepdog if the service process exits due to an uncaught signal not specified as a clean exit status.

Vladislav Gorbunov vadikgo at gmail.com
Fri Dec 5 05:26:53 CET 2014


Signed-off-by: Vladislav Gorbunov <vadikgo at gmail.com>
---
 script/sheepdog.service.in | 3 +++
 1 file changed, 3 insertions(+)

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




More information about the sheepdog mailing list