2016-01-19 22:23:19 +08:00
|
|
|
[Unit]
|
|
|
|
Description=etcd
|
2016-01-25 09:01:25 +08:00
|
|
|
|
2016-01-19 22:23:19 +08:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=etcd
|
|
|
|
EnvironmentFile=/etc/etcd.env
|
|
|
|
{% if inventory_hostname in groups['etcd'] %}
|
|
|
|
ExecStart={{ bin_dir }}/etcd
|
|
|
|
{% else %}
|
|
|
|
ExecStart={{ bin_dir }}/etcd -proxy on
|
|
|
|
{% endif %}
|
|
|
|
Restart=always
|
|
|
|
RestartSec=10s
|
|
|
|
LimitNOFILE=40000
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|