defaults

package
v0.0.0-...-5f615e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockChecker

type BlockChecker struct {
	Logger logange.Logger
}

func (BlockChecker) IsRebootBlocked

func (b BlockChecker) IsRebootBlocked() bool

IsRebootBlocked returns true if any of the executable scripts in /etc/smartreboot/blockchecks returns a non-zero exit code, otherwise false is returned.

type RebootChecker

type RebootChecker struct {
	Logger logange.Logger
}

func (RebootChecker) IsRebootRequired

func (r RebootChecker) IsRebootRequired() bool

IsRebootRequired executes all scripts in /etc/smartreboot/rebootchecks returning true if at least one returned an exit code of 0, false if all were non-zero.

type Rebooter

type Rebooter struct {
	Logger logange.Logger
}

func (Rebooter) Reboot

func (r Rebooter) Reboot() error

Reboot "safely" restarts the system.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL