[sheepdog] [PATCH stable-0.9 1/2] script: fix systemd support
Hitoshi Mitake
mitake.hitoshi at lab.ntt.co.jp
Fri Dec 26 05:55:41 CET 2014
From: Vladislav Gorbunov <vadikgo at gmail.com>
Signed-off-by: Vladislav Gorbunov <vadikgo at gmail.com>
Reviewed-by: Vasiliy Tolstov <v.tolstov at selfip.ru>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
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
--
1.8.3.2
More information about the sheepdog
mailing list