[Unit]
After = network.target
Description = Devstack devstack@etcd.service

[Service]
LimitNOFILE = 65536
Restart = on-failure
Type = notify
ExecReload = /usr/bin/kill -HUP $MAINPID
TimeoutStopSec = 300
KillMode = process
ExecStart = /opt/stack//bin/etcd --name devstack --data-dir /opt/stack/data/etcd --initial-cluster-state new --initial-cluster-token etcd-cluster-01 --initial-cluster devstack=http://10.180.1.21:2380 --initial-advertise-peer-urls http://10.180.1.21:2380 --advertise-client-urls http://10.180.1.21:2379 --listen-peer-urls http://0.0.0.0:2380 --listen-client-urls http://10.180.1.21:2379 --log-level=debug
User = root
Environment = "PATH=/opt/stack/data/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin"

[Install]
WantedBy = multi-user.target