c12s-kubespray/roles/etcd/templates/systemd-etcd2.service.j2

19 lines
333 B
Text
Raw Normal View History

2015-10-03 20:19:50 +00:00
[Unit]
Description=etcd2
Conflicts=etcd.service
[Service]
User=etcd
2015-12-16 20:43:29 +00:00
EnvironmentFile=/etc/etcd2-environment
2015-12-15 10:49:11 +00:00
{% if inventory_hostname in groups['etcd'] %}
2015-10-03 20:19:50 +00:00
ExecStart={{ bin_dir }}/etcd2
2015-12-15 10:49:11 +00:00
{% else %}
ExecStart={{ bin_dir }}/etcd2 -proxy on
{% endif %}
2015-10-03 20:19:50 +00:00
Restart=always
RestartSec=10s
LimitNOFILE=40000
[Install]
WantedBy=multi-user.target