Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockChecker ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.