Create restart.sentinel after storing peer list
Otherwise, we risk to lose peer list when any failure happens after the creation but before storing the list and as a consequence, the weave container gets restarted.
This commit is contained in:
1 parent
c720ebec02
commit
cdeae04238
2 files changed
+11
-6
No files matched your search
@@ -322,6 +322,7 @@ func main() {
|
||||
if errors := router.InitiateConnections(peers, false); len(errors) > 0 {
|
||||
Log.Fatal(common.ErrorMessages(errors))
|
||||
}
|
||||
checkFatal(router.CreateRestartSentinel())
|
||||
|
||||
// The weave script always waits for a status call to succeed,
|
||||
// so there is no point in doing "weave launch --http-addr ''".
|
||||
|
||||
Reference in new issue
Block a user