|
@ -1,8 +1,9 @@ |
|
|
[Unit] |
|
|
[Unit] |
|
|
Description=etcd |
|
|
Description=etcd |
|
|
|
|
|
|
|
|
|
|
|
After=network.target |
|
|
|
|
|
|
|
|
[Service] |
|
|
[Service] |
|
|
|
|
|
Type=notify |
|
|
User=etcd |
|
|
User=etcd |
|
|
EnvironmentFile=/etc/etcd.env |
|
|
EnvironmentFile=/etc/etcd.env |
|
|
{% if inventory_hostname in groups['etcd'] %} |
|
|
{% if inventory_hostname in groups['etcd'] %} |
|
@ -10,6 +11,7 @@ ExecStart={{ bin_dir }}/etcd |
|
|
{% else %} |
|
|
{% else %} |
|
|
ExecStart={{ bin_dir }}/etcd -proxy on |
|
|
ExecStart={{ bin_dir }}/etcd -proxy on |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
NotifyAccess=all |
|
|
Restart=always |
|
|
Restart=always |
|
|
RestartSec=10s |
|
|
RestartSec=10s |
|
|
LimitNOFILE=40000 |
|
|
LimitNOFILE=40000 |
|
|