c12s-kubespray/roles/etcd/templates/etcd-docker.service.j2

19 lines
447 B
Text
Raw Permalink Normal View History

[Unit]
Description=etcd docker wrapper
Wants=docker.socket
After=docker.service
[Service]
User=root
PermissionsStartOnly=true
EnvironmentFile=-/etc/etcd.env
ExecStart={{ bin_dir }}/etcd
ExecStartPre=-{{ docker_bin_dir }}/docker rm -f {{ etcd_member_name | default("etcd") }}
ExecStop={{ docker_bin_dir }}/docker stop {{ etcd_member_name | default("etcd") }}
Restart=always
RestartSec=15s
2017-03-29 19:22:49 +00:00
TimeoutStartSec=30s
[Install]
WantedBy=multi-user.target