c12s-kubespray/roles/network_plugin/weave/templates/weave.service.j2

19 lines
489 B
Text
Raw Normal View History

2016-02-09 16:16:16 +00:00
[Unit]
Description=Weave Network
Documentation=http://docs.weave.works/weave/latest_release/
Wants=docker.socket
After=docker.service docker.socket
2016-02-09 16:16:16 +00:00
[Service]
EnvironmentFile=-/etc/weave.env
ExecStartPre=-{{ docker_bin_dir }}/docker rm -f weave
2016-02-09 16:16:16 +00:00
ExecStartPre={{ bin_dir }}/weave launch-router \
$WEAVE_SUBNET \
$WEAVE_PEERS
ExecStart={{ docker_bin_dir }}/docker attach weave
ExecStop={{ bin_dir }}/weave stop
Restart=on-failure
2016-02-09 16:16:16 +00:00
[Install]
WantedBy=multi-user.target