[sheepdog] [PATCH] fix systemd support

Vladislav Gorbunov vadikgo at gmail.com
Tue Dec 2 01:43:25 CET 2014


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

diff --git a/script/sheepdog.service.in b/script/sheepdog.service.in
index 555083e..e7600cc 100644
--- a/script/sheepdog.service.in
+++ b/script/sheepdog.service.in
@@ -7,7 +7,7 @@ Wants=syslog.target
 EnvironmentFile=- at SYSCONFDIR@/conf.d/sheepdog.conf
 EnvironmentFile=- at SYSCONFDIR@/sysconfig/sheepdog
 EnvironmentFile=- at SYSCONFDIR@/default/sheepdog
-ExecStart=@SBINDIR@/sheep --pidfile @LOCALSTATEDIR@/run/sheep.pid ${SHEEP_OPTS:-"--cluster local --log syslog --pidfile @LOCALSTATEDIR@/run/sheep.pid --upgrade @LOCALSTATEDIR@/lib/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
 
-- 
2.1.0




More information about the sheepdog mailing list