2016-02-09 16:16:16 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Weave Network
|
|
|
|
Documentation=http://docs.weave.works/weave/latest_release/
|
2016-08-02 10:42:27 +00:00
|
|
|
Wants=docker.socket
|
2016-08-02 08:55:42 +00:00
|
|
|
After=docker.service docker.socket
|
2016-02-09 16:16:16 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=-/etc/weave.env
|
2016-12-23 14:44:44 +00:00
|
|
|
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
|
2016-12-23 14:44:44 +00:00
|
|
|
ExecStart={{ docker_bin_dir }}/docker attach weave
|
2016-12-14 13:41:13 +00:00
|
|
|
ExecStop={{ bin_dir }}/weave stop
|
2016-12-23 14:44:44 +00:00
|
|
|
Restart=on-failure
|
2016-02-09 16:16:16 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|