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

20 lines
360 B
Text
Raw Normal View History

2015-10-03 20:19:50 +00:00
[Unit]
Description=etcd2
Conflicts=etcd.service
[Service]
User=etcd
Environment=ETCD_DATA_DIR=/var/lib/etcd2
Environment=ETCD_NAME=%m
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