[sheepdog] systemd

Vasiliy Tolstov v.tolstov at selfip.ru
Tue Oct 21 12:25:01 CEST 2014


2014-10-21 10:45 GMT+04:00 Valerio Pachera <sirio81 at gmail.com>:
> Hi, I asked in Fedora mailing list for someone interested in
> creating/maintaining a sheepdog package.
> I got some good answers but they make me notice we don't have any
> systemd service file.
> Systemd is adopted by many distribution and it's going to to be also
> the default for debian 8.
>
> Richard Shaw of Fedora suggested this very basic script asking for
> someone more familiar with systemd to review it.
>
> [Unit]
> Description=Sheepdog distributed storage system
>
> [Service]
> ExecStart=/usr/sbin/sheep
>
> [Install]
> WantedBy=multi-user.target
>
> Is anybody in this list familiar with systemd, to create a proper
> service file in upstrem?
>
> Thank you.


Hello' I'm writing this for me:

[Unit]
Description=Sheepdog QEMU/KVM Block Storage
After=syslog.target

[Service]
EnvironmentFile=/etc/conf.d/sheep.conf
ExecStart=/usr/sbin/sheep --pidfile /var/run/sheep.pid ${SHEEP_OPTS}
${SHEEP_PATH}
PIDFile=/var/run/sheep.pid
Type=forking

[Install]
WantedBy=multi-user.target

sheep.conf have this for example:

SHEEP_OPTS="-c local -D -u"
SHEEP_PATH="/var/lib/sheepdog"


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



More information about the sheepdog mailing list