Skip to content

Commit

Permalink
Debug autoreboot.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Nov 3, 2023
1 parent 7dda3a8 commit 2a72ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func Run(log *zap.SugaredLogger, spec *Specification, hal hal.InBand) (*event.Ev
}

// Reboot after 24Hours if no allocation was requested.
go kernel.AutoReboot(log, 1*24*time.Hour, 24*time.Hour, func() {
eventEmitter.Emit(event.ProvisioningEventPlannedReboot, "autoreboot after 24h")
go kernel.AutoReboot(log, 5*time.Minute, 2*time.Minute, func() {
eventEmitter.Emit(event.ProvisioningEventPlannedReboot, "autoreboot")
})

hammer.Spec.ConsolePassword = password.Generate(16)
Expand Down

0 comments on commit 2a72ab3

Please sign in to comment.