Merge pull request #362 from bogdando/fix_service_unit
Fix systemd service unit for etcd
This commit is contained in:
commit
a2540e3318
1 changed files with 3 additions and 1 deletions
|
@ -1,8 +1,9 @@
|
|||
[Unit]
|
||||
Description=etcd
|
||||
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
User=etcd
|
||||
EnvironmentFile=/etc/etcd.env
|
||||
{% if inventory_hostname in groups['etcd'] %}
|
||||
|
@ -10,6 +11,7 @@ ExecStart={{ bin_dir }}/etcd
|
|||
{% else %}
|
||||
ExecStart={{ bin_dir }}/etcd -proxy on
|
||||
{% endif %}
|
||||
NotifyAccess=all
|
||||
Restart=always
|
||||
RestartSec=10s
|
||||
LimitNOFILE=40000
|
||||
|
|
Loading…
Reference in a new issue