2016-02-10 00:16:16 +08:00
|
|
|
[Unit]
|
|
|
|
Description=Weave Network
|
|
|
|
Documentation=http://docs.weave.works/weave/latest_release/
|
2016-08-02 18:42:27 +08:00
|
|
|
Wants=docker.socket
|
2016-08-02 16:55:42 +08:00
|
|
|
After=docker.service docker.socket
|
2016-02-10 00:16:16 +08:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=-/etc/weave.env
|
|
|
|
ExecStartPre={{ bin_dir }}/weave launch-router \
|
|
|
|
$WEAVE_SUBNET \
|
|
|
|
$WEAVE_PEERS
|
|
|
|
ExecStart=/usr/bin/docker attach weave
|
|
|
|
ExecStop={{ bin_dir }}/weave stop-router
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|