Merge branch 'pr/683'

* pr/683:
  Restart monitor as part of the upgrade process (fixes #682)
This commit is contained in:
Jakob Borg
2014-09-14 23:18:48 +02:00
3 changed files with 16 additions and 1 deletions

View File

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