2016-06-24 15:25:16 +03:00
|
|
|
[Unit]
|
|
|
|
Description=etcd docker wrapper
|
2016-07-29 12:46:24 +03:00
|
|
|
Wants=docker.socket
|
2016-06-24 15:25:16 +03:00
|
|
|
After=docker.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=root
|
|
|
|
PermissionsStartOnly=true
|
2017-10-20 08:02:31 +01:00
|
|
|
EnvironmentFile=-/etc/etcd.env
|
2017-03-23 17:56:30 +01:00
|
|
|
ExecStart={{ bin_dir }}/etcd
|
2016-12-23 15:44:44 +01: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 15:25:16 +03:00
|
|
|
Restart=always
|
2016-07-19 16:45:37 +03:00
|
|
|
RestartSec=15s
|
2017-03-29 23:22:49 +04:00
|
|
|
TimeoutStartSec=30s
|
2016-06-24 15:25:16 +03:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|