dragonflow/devstack/etcd.conf
Gal Sagie 0605729193 Change etcd installation process
Install etcd latest version and add it to init
etcd will be able to recover from restarts

Change-Id: Ibd5ba9af9745ca6bf4d5d47720440b6af5357cfd
2015-12-22 16:17:19 +02:00

22 lines
441 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 [ ! -f "/var/etcd" ]; then
mkdir /var/etcd
fi
chdir /var/etcd
exec /usr/local/bin/etcd >>/var/log/etcd.log 2>&1
end script