Skip to content

Commit

Permalink
Review Changes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
flotter committed Aug 11, 2023
1 parent 847ff6e commit e88eb9d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internals/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -717,12 +717,15 @@ var rebootHandler = systemdModeReboot
type RebootMode int

const (
// Reboot uses systemd
SystemdMode RebootMode = iota + 1
// Reboot uses direct kernel syscalls
SyscallMode
)

// SetRebootMode can set how the system should issue a reboot.
// The default reboot handler mode is SystemdMode.
// SetRebootMode configures how the system issues a reboot. The default
// reboot handler mode is SystemdMode, which relies on systemd
// (or similar) provided functionality to reboot.
func SetRebootMode(mode RebootMode) {
switch mode {
case SystemdMode:
Expand Down

0 comments on commit e88eb9d

Please sign in to comment.