Print error on monitor restart failure

This commit is contained in:
Jakob Borg 2014-09-14 23:19:28 +02:00
parent 517b7a14b4
commit aba01cdace

View File

@ -99,7 +99,10 @@ func monitorMain() {
// binary as part of the upgrade process.
l.Infoln("Restarting monitor...")
os.Setenv("STNORESTART", "")
exec.Command(args[0], args[1:]...).Start()
err := exec.Command(args[0], args[1:]...).Start()
if err != nil {
l.Warnln("restart:", err)
}
return
}
}