2016-02-10 00:16:16 +08:00
|
|
|
[Unit]
|
|
|
|
Description=Weave proxy for Docker API
|
|
|
|
Documentation=http://docs.weave.works/
|
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.%H.env
|
|
|
|
EnvironmentFile=-/etc/weave.env
|
2016-12-23 22:44:44 +08:00
|
|
|
ExecStartPre=-{{ docker_bin_dir }}/docker rm -f weaveproxy
|
2016-02-10 00:16:16 +08:00
|
|
|
ExecStartPre={{ bin_dir }}/weave launch-proxy $WEAVEPROXY_ARGS
|
2016-12-23 22:44:44 +08:00
|
|
|
ExecStart={{ docker_bin_dir }}/docker attach weaveproxy
|
2016-02-10 00:16:16 +08:00
|
|
|
Restart=on-failure
|
2016-12-23 22:44:44 +08:00
|
|
|
ExecStop={{ bin_dir }}/weave stop-proxy
|
2016-02-10 00:16:16 +08:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=weave-network.target
|