16 lines
401 B
Django/Jinja
16 lines
401 B
Django/Jinja
[Unit]
|
|
Description=Weave Network
|
|
Documentation=http://docs.weave.works/weave/latest_release/
|
|
Requires=docker.service
|
|
After=docker.service
|
|
|
|
[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
|