Documentation
¶
Overview ¶
Package svc wraps `systemctl --user` and `journalctl --user`.
Index ¶
Constants ¶
const ExitRadioMissing = 3
ExitRadioMissing is the exit status of a hamstack service whose radio is not there (hamstack's units list it in RestartPreventExitStatus, so there is no restart loop).
Variables ¶
This section is empty.
Functions ¶
func Available ¶
func Available() error
Available reports whether a systemd user manager is reachable.
func LingerEnabled ¶
LingerEnabled reports whether the current user's services keep running (and start at boot) without an open login session.
Types ¶
type State ¶
type State struct {
Load string // loaded, not-found
Active string // active, inactive, failed, activating...
Sub string // running, dead, failed...
Enabled string // enabled, disabled, static, ...
Since string // ActiveEnterTimestamp, empty if never
// ExitStatus is the exit code of the service's main process the last time it ran.
ExitStatus int
}
State is a unit's runtime state.