Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HardReboot ¶
HardReboot will try to sync file-system data and then issues a reboot system call. It will not block indefinitely on syncing. It doesn't depend on a working "reboot" programme. This is a reboot of last resort.
func RunCommand ¶
RunCommand will run a command, returning true on success. If there is an error, a message is logged and false is returned. The name of the command to run must be specified by name.
func RunCommandBackground ¶
RunCommandBackground will run a command in a goroutine and returns a channel that will receive a message if the command fails. No message is received if the command succeeds. Errors are logged. This is useful for commands that start asynchronous work where you will wait for completion but want failures to trigger a cancellation on waiting.
func SyncTimeout ¶ added in v0.8.0
SyncTimeout will try to sync file-system data and then waits up to the specified timeout for it to complete. It returns an error on failure/timeout.
Types ¶
This section is empty.