2016-06-24 12:25:16 +00:00
|
|
|
[Unit]
|
|
|
|
Description=etcd docker wrapper
|
2016-07-29 09:46:24 +00:00
|
|
|
Wants=docker.socket
|
2016-06-24 12:25:16 +00:00
|
|
|
After=docker.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=root
|
|
|
|
PermissionsStartOnly=true
|
2017-10-20 07:02:31 +00:00
|
|
|
EnvironmentFile=-/etc/etcd.env
|
2017-03-23 16:56:30 +00:00
|
|
|
ExecStart={{ bin_dir }}/etcd
|
2016-12-23 14:44:44 +00:00
|
|
|
ExecStartPre=-{{ docker_bin_dir }}/docker rm -f {{ etcd_member_name | default("etcd") }}
|
|
|
|
ExecStop={{ docker_bin_dir }}/docker stop {{ etcd_member_name | default("etcd") }}
|
2016-06-24 12:25:16 +00:00
|
|
|
Restart=always
|
2016-07-19 13:45:37 +00:00
|
|
|
RestartSec=15s
|
2017-03-29 19:22:49 +00:00
|
|
|
TimeoutStartSec=30s
|
2016-06-24 12:25:16 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|