<div dir="ltr">Here is diff:<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..e7600cc 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=/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
</pre></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-28 23:05 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-28 6:24 GMT+03:00 Vladislav Gorbunov <<a href="mailto:vadikgo@gmail.com">vadikgo@gmail.com</a>>:<br>
> Command:<br>
><br>
> ExecStart=/bin/sh -c '/usr/sbin/sheep --pidfile /var/run/sheep.pid $(if [ -z<br>
> "$SHEEP_OPTS" ]; then echo "--cluster local --log dst=syslog --upgrade<br>
> /var/lib/sheepdog"; else echo $SHEEP_OPTS; fi)'<br>
><br>
> will work. But may be trust to sheepdog defaults and set:<br>
><br>
> ExecStart=/usr/sbin/sheep --pidfile /var/run/sheep.pid $SHEEP_OPTS<br>
><br>
> This will be more pretty. What do you think?<br>
<br>
<br>
</span>+1 for the first variant. Because zookeeper and corosync cluster types<br>
needs additional configuration, but if default is local - we can<br>
create vdi, test and all works fine. If user needs another cluster<br>
engine - he can configure it and change defaults via env file.<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>