b098d117b4
We intend to use etcd as data store for Zun, so we need to set up etcd server and client in devstack. Part of blueprint etcd-db-driver Change-Id: I63bf91bc0cdb894b53c4f8385c7d3d651035831a
23 lines
435 B
Plaintext
23 lines
435 B
Plaintext
description "etcd 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
|