fix etcd restart

This commit is contained in:
Matthew Mosesohn 2017-03-29 23:22:49 +04:00
parent 1d4e6b2ade
commit 0e648347f9

View file

@ -9,10 +9,10 @@ PermissionsStartOnly=true
EnvironmentFile=/etc/etcd.env EnvironmentFile=/etc/etcd.env
ExecStart={{ bin_dir }}/etcd ExecStart={{ bin_dir }}/etcd
ExecStartPre=-{{ docker_bin_dir }}/docker rm -f {{ etcd_member_name | default("etcd") }} ExecStartPre=-{{ docker_bin_dir }}/docker rm -f {{ etcd_member_name | default("etcd") }}
ExecReload={{ docker_bin_dir }}/docker restart {{ etcd_member_name | default("etcd") }}
ExecStop={{ docker_bin_dir }}/docker stop {{ etcd_member_name | default("etcd") }} ExecStop={{ docker_bin_dir }}/docker stop {{ etcd_member_name | default("etcd") }}
Restart=always Restart=always
RestartSec=15s RestartSec=15s
TimeoutStartSec=30s
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target