Restart monitor as part of the upgrade process (fixes #682)

This commit is contained in:
Audrius Butkevicius
2014-09-13 15:25:39 +01:00
parent bf7a128142
commit a5e3317e28
3 changed files with 16 additions and 1 deletions

View File

@@ -541,7 +541,9 @@ func restPostUpgrade(w http.ResponseWriter, r *http.Request) {
return
}
restPostRestart(w, r)
flushResponse(`{"ok": "restarting"}`, w)
l.Infoln("Upgrading")
stop <- exitUpgrading
}
}