19 lines
321 B
Plaintext
19 lines
321 B
Plaintext
|
[Unit]
|
||
|
Description=etcd
|
||
|
Conflicts=etcd.service
|
||
|
|
||
|
[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
|