mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-22 07:50:04 -05:00
debug: sleep for 30 days before rebooting
This commit is contained in:
parent
9b5b103044
commit
be965abc9a
@ -23,7 +23,8 @@ func Reboot(e error) {
|
|||||||
}
|
}
|
||||||
_ = syslogWriter.Err(e.Error())
|
_ = syslogWriter.Err(e.Error())
|
||||||
_ = syslogWriter.Emerg("bootstrapper has encountered a non recoverable error. Rebooting...")
|
_ = syslogWriter.Emerg("bootstrapper has encountered a non recoverable error. Rebooting...")
|
||||||
time.Sleep(time.Minute) // sleep to allow the message to be written to syslog and seen by the user
|
// Debug: sleep for 30 days
|
||||||
|
time.Sleep(30 * 24 * time.Hour) // sleep to allow the message to be written to syslog and seen by the user
|
||||||
|
|
||||||
_ = syscall.Reboot(syscall.LINUX_REBOOT_CMD_RESTART)
|
_ = syscall.Reboot(syscall.LINUX_REBOOT_CMD_RESTART)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user