2016-02-09 16:16:16 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Weave proxy for Docker API
|
|
|
|
Documentation=http://docs.weave.works/
|
2016-08-02 08:55:42 +00:00
|
|
|
Wants=docker.service docker.socket
|
|
|
|
After=docker.service docker.socket
|
2016-02-09 16:16:16 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=-/etc/weave.%H.env
|
|
|
|
EnvironmentFile=-/etc/weave.env
|
|
|
|
ExecStartPre={{ bin_dir }}/weave launch-proxy $WEAVEPROXY_ARGS
|
|
|
|
ExecStart=/usr/bin/docker attach weaveproxy
|
|
|
|
Restart=on-failure
|
|
|
|
ExecStop=/opt/bin/weave stop-proxy
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=weave-network.target
|