dragonflow/devstack/etcd.conf
Gal Sagie 049786e7fd Change chdir to cd in etcd service conf
Change-Id: I28020627bbcb1e5fdfd952cd9c920685095de185
2016-02-24 09:11:19 +02:00

23 lines
439 B
Plaintext

description "etcd 2.0 distributed key-value store"
author "Scott Lowe <scott.lowe@scottlowe.org>"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]
respawn
respawn limit 10 5
script
if [ -f "/etc/default/etcd" ]; then
. /etc/default/etcd
fi
if [ ! -d "/var/etcd" ]; then
mkdir /var/etcd
fi
cd /var/etcd
exec /usr/local/bin/etcd >>/var/log/etcd.log 2>&1
end script