2012-01-12 05:34:06 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Sheepdog QEMU/KVM Block Storage
|
2017-01-09 09:50:12 +00:00
|
|
|
After=network.target
|
|
|
|
Requires=corosync.service
|
2012-01-12 05:34:06 +00:00
|
|
|
|
|
|
|
[Service]
|
2017-01-09 09:50:12 +00:00
|
|
|
EnvironmentFile=/etc/sysconfig/sheepdog
|
|
|
|
ExecStart=/usr/sbin/sheep -f --log level=${SHEEPDOG_LOGLEVEL},dst=${SHEEPDOG_LOGDEST},format=${SHEEPDOG_LOGFMT} $SHEEPDOG_EXTRA_OPTS ${SHEEPDOG_PATH}
|
2017-01-09 11:09:25 +00:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=2s
|
2017-01-09 09:50:12 +00:00
|
|
|
LimitNOFILE=32768
|
2012-01-12 05:34:06 +00:00
|
|
|
|
2017-01-09 11:09:25 +00:00
|
|
|
# Use sheepdog.timer instead. Because corosync does not provide
|
|
|
|
# notification via sd_notify, we introduce an arbitrary delay between
|
|
|
|
# starting corosync.service and starting sheepdog.
|
|
|
|
|
|
|
|
#[Install]
|
|
|
|
#WantedBy=multi-user.target
|