[sheepdog] [PATCH] fix systemd support on CentOS/RHEL 7
Vasiliy Tolstov
v.tolstov at selfip.ru
Fri Nov 28 14:05:53 CET 2014
2014-11-28 6:24 GMT+03:00 Vladislav Gorbunov <vadikgo at gmail.com>:
> Command:
>
> ExecStart=/bin/sh -c '/usr/sbin/sheep --pidfile /var/run/sheep.pid $(if [ -z
> "$SHEEP_OPTS" ]; then echo "--cluster local --log dst=syslog --upgrade
> /var/lib/sheepdog"; else echo $SHEEP_OPTS; fi)'
>
> will work. But may be trust to sheepdog defaults and set:
>
> ExecStart=/usr/sbin/sheep --pidfile /var/run/sheep.pid $SHEEP_OPTS
>
> This will be more pretty. What do you think?
+1 for the first variant. Because zookeeper and corosync cluster types
needs additional configuration, but if default is local - we can
create vdi, test and all works fine. If user needs another cluster
engine - he can configure it and change defaults via env file.
--
Vasiliy Tolstov,
e-mail: v.tolstov at selfip.ru
jabber: vase at selfip.ru
More information about the sheepdog
mailing list