Fix weave restart after docker daemon restart
This commit is contained in:
parent
8e809aed01
commit
495d0b659a
2 changed files with 3 additions and 1 deletions
|
@ -6,11 +6,12 @@ After=docker.service docker.socket
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/weave.env
|
EnvironmentFile=-/etc/weave.env
|
||||||
|
ExecStartPre=-/usr/bin/docker rm -f weave
|
||||||
ExecStartPre={{ bin_dir }}/weave launch-router \
|
ExecStartPre={{ bin_dir }}/weave launch-router \
|
||||||
$WEAVE_SUBNET \
|
$WEAVE_SUBNET \
|
||||||
$WEAVE_PEERS
|
$WEAVE_PEERS
|
||||||
ExecStart=/usr/bin/docker attach weave
|
ExecStart=/usr/bin/docker attach weave
|
||||||
ExecStop={{ bin_dir }}/weave stop-router
|
ExecStop={{ bin_dir }}/weave stop
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -7,6 +7,7 @@ After=docker.service docker.socket
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/weave.%H.env
|
EnvironmentFile=-/etc/weave.%H.env
|
||||||
EnvironmentFile=-/etc/weave.env
|
EnvironmentFile=-/etc/weave.env
|
||||||
|
ExecStartPre=-/usr/bin/docker rm -f weaveproxy
|
||||||
ExecStartPre={{ bin_dir }}/weave launch-proxy $WEAVEPROXY_ARGS
|
ExecStartPre={{ bin_dir }}/weave launch-proxy $WEAVEPROXY_ARGS
|
||||||
ExecStart=/usr/bin/docker attach weaveproxy
|
ExecStart=/usr/bin/docker attach weaveproxy
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
Loading…
Reference in a new issue