<div dir="ltr">Shell command ${SHEEP_OPTS:-"--cluster local --log dst=syslog --upgrade /var/lib/sheepdog"} didn't work on my systemd version 208 release 11.el7_0.4.<div><br></div><div>systemctl start sheepdog didn't start:<div><div>sheepdog.service - Sheepdog QEMU/KVM Block Storage</div><div> Loaded: loaded (/usr/lib/systemd/system/sheepdog.service; enabled)</div><div> Active: failed (Result: resources) since Чт 2014-11-27 00:32:33 MAGT; 2min 24s ago</div><div> Process: 29664 ExecStart=/usr/sbin/sheep --pidfile /var/run/sheep.pid ${SHEEP_OPTS:-"--cluster local --log dst=syslog - -upgrade /var/lib/sheepdog"} (code=exited, status=0/SUCCESS)</div><div> Main PID: 29109 (code=exited, status=1/FAILURE)</div></div><div><br></div><div>But ExecStart=/usr/sbin/sheep --pidfile /var/run/sheep.pid $SHEEP_OPTS just work. Here is the patch:</div></div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">diff --git a/script/<a href="http://sheepdog.service.in">sheepdog.service.in</a> b/script/<a href="http://sheepdog.service.in">sheepdog.service.in</a>
index 555083e..6a1c5bb 100644
--- a/script/<a href="http://sheepdog.service.in">sheepdog.service.in</a>
+++ b/script/<a href="http://sheepdog.service.in">sheepdog.service.in</a>
@@ -7,7 +7,7 @@ Wants=syslog.target
EnvironmentFile=-@SYSCONFDIR@/conf.d/sheepdog.conf
EnvironmentFile=-@SYSCONFDIR@/sysconfig/sheepdog
EnvironmentFile=-@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=@SBINDIR@/sheep --pidfile @LOCALSTATEDIR@/run/sheep.pid $SHEEP_OPTS
PIDFile=@LOCALSTATEDIR@/run/sheep.pid
Type=forking</pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-26 19:36 GMT+10:00 Vasiliy Tolstov <span dir="ltr"><<a href="mailto:v.tolstov@selfip.ru" target="_blank">v.tolstov@selfip.ru</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">2014-11-26 12:29 GMT+03:00 Vladislav Gorbunov <<a href="mailto:vadikgo@gmail.com">vadikgo@gmail.com</a>>:<br>
> Hello.<br>
> In sheepdog 0.9 parameter --log syslog will not work. Need to set:<br>
> --log dst=syslog<br>
> and remove --pidfile @LOCALSTATEDIR@/run/sheep.pid duplicate.<br>
<br>
<br>
</span>Ok. Can you rewrite patch to correct only this issues?<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Vasiliy Tolstov,<br>
e-mail: <a href="mailto:v.tolstov@selfip.ru">v.tolstov@selfip.ru</a><br>
jabber: <a href="mailto:vase@selfip.ru">vase@selfip.ru</a><br>
</div></div></blockquote></div><br></div>