0b874e8db2
See https://github.com/coreos/etcd/issues/4308 Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
20 lines
348 B
Django/Jinja
20 lines
348 B
Django/Jinja
[Unit]
|
|
Description=etcd
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=notify
|
|
User=etcd
|
|
EnvironmentFile=/etc/etcd.env
|
|
{% if inventory_hostname in groups['etcd'] %}
|
|
ExecStart={{ bin_dir }}/etcd
|
|
{% else %}
|
|
ExecStart={{ bin_dir }}/etcd -proxy on
|
|
{% endif %}
|
|
NotifyAccess=all
|
|
Restart=always
|
|
RestartSec=10s
|
|
LimitNOFILE=40000
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|