reboot if forceRebootSentinel exists

This commit is contained in:
Frank Vissing
2018-06-01 13:29:49 +02:00
parent 989594acbf
commit 6a4dcc8fb3

View File

@@ -124,7 +124,7 @@ func forceRebootsentinelExists() bool {
}
func rebootRequired() bool {
if sentinelExists() {
if sentinelExists() || forceRebootsentinelExists() {
log.Infof("Reboot required")
return true
} else {
@@ -135,7 +135,7 @@ func rebootRequired() bool {
func rebootBlocked() bool {
if forceRebootsentinelExists() {
log.Infof("Force reboot sentinel %v exists, force rebooting activated",forceRebootSentinel)
log.Infof("Force reboot sentinel %v exists, force rebooting activated", forceRebootSentinel)
return false
}
if prometheusURL != "" {