[sheepdog] [PATCH] fix systemd support on CentOS/RHEL 7

Vasiliy Tolstov v.tolstov at selfip.ru
Wed Nov 26 21:17:49 CET 2014

2014-11-26 18:58 GMT+03:00 Vladislav Gorbunov <vadikgo at gmail.com>:
> Didn't work:
> sheepdog.service - Sheepdog QEMU/KVM Block Storage
>    Loaded: loaded (/usr/lib/systemd/system/sheepdog.service; enabled)
>    Active: failed (Result: exit-code) since Чт 2014-11-27 01:57:52 MAGT; 1s
> ago
>   Process: 30115 ExecStart=/usr/sbin/sheep --pidfile /var/run/sheep.pid
> $(echo ${SHEEP_OPTS:-"--cluster local --log dst=syslog - -upgrade
> /var/lib/sheepdog"}) (code=exited, status=1/FAILURE)
>  Main PID: 29990 (code=exited, status=0/SUCCESS)

Yes. I think we can use something like:
/usr/sbin/sheep --pidfile /var/run/sheep.pid --log std=syslog
--upgrade --cluster local $SHEEP_OPTS /var/lib/sheepdog

in this case user have ability to override sane defaults and default
sheepdog path.

Error that you see because systemd differently understand $VARIABLE
(see http://www.alaux.net/articles/systemd-unit-files-and-environment-variables/)

If you know better how to provide working defaults and add ability to
override it, i'm very interesting.

Vasiliy Tolstov,
e-mail: v.tolstov at selfip.ru
jabber: vase at selfip.ru

More information about the sheepdog mailing list