Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
495d0b65
Commit
495d0b65
authored
8 years ago
by
Matthew Mosesohn
Browse files
Options
Downloads
Patches
Plain Diff
Fix weave restart after docker daemon restart
parent
8e809aed
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/network_plugin/weave/templates/weave.service.j2
+2
-1
2 additions, 1 deletion
roles/network_plugin/weave/templates/weave.service.j2
roles/network_plugin/weave/templates/weaveproxy.service.j2
+1
-0
1 addition, 0 deletions
roles/network_plugin/weave/templates/weaveproxy.service.j2
with
3 additions
and
1 deletion
roles/network_plugin/weave/templates/weave.service.j2
+
2
−
1
View file @
495d0b65
...
...
@@ -6,11 +6,12 @@ After=docker.service docker.socket
[Service]
EnvironmentFile=-/etc/weave.env
ExecStartPre=-/usr/bin/docker rm -f weave
ExecStartPre={{ bin_dir }}/weave launch-router \
$WEAVE_SUBNET \
$WEAVE_PEERS
ExecStart=/usr/bin/docker attach weave
ExecStop={{ bin_dir }}/weave stop
-router
ExecStop={{ bin_dir }}/weave stop
[Install]
WantedBy=multi-user.target
This diff is collapsed.
Click to expand it.
roles/network_plugin/weave/templates/weaveproxy.service.j2
+
1
−
0
View file @
495d0b65
...
...
@@ -7,6 +7,7 @@ After=docker.service docker.socket
[Service]
EnvironmentFile=-/etc/weave.%H.env
EnvironmentFile=-/etc/weave.env
ExecStartPre=-/usr/bin/docker rm -f weaveproxy
ExecStartPre={{ bin_dir }}/weave launch-proxy $WEAVEPROXY_ARGS
ExecStart=/usr/bin/docker attach weaveproxy
Restart=on-failure
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment