Versions in this module Expand all Collapse all v0 v0.4.22 Jul 28, 2026 Changes in this version + var ErrorCanceled = errors.New("job has been canceled before it finished execution") + var ErrorDependency = errors.New(...) + var ErrorFailed = errors.New("job failed") + var ErrorMap = map[string]error + var ErrorSkipped = errors.New("job was skipped because it didn't apply to the units current state") + var ErrorTimeout = errors.New("job timeout was reached") + var ErrorUnknown = errors.New("unknown error") + var ResultCanceled = "canceled" + var ResultDependency = "dependency" + var ResultDone = "done" + var ResultFailed = "failed" + var ResultSkipped = "skipped" + var ResultTimeout = "timeout" + func DisableService(name string, wait ...time.Duration) error + func EnableService(nameOrPath string, wait ...time.Duration) error + func IsServiceEnabled(name string, wait ...time.Duration) (bool, error) + func IsServiceRunning(name string, wait ...time.Duration) (bool, error) + func ReloadDaemon(wait ...time.Duration) error + func RestartService(name string, force bool, wait ...time.Duration) error + func StartService(name string, wait ...time.Duration) error + func StopService(name string, wait ...time.Duration) error + type Service struct + Name string + Running bool + func ListServices(pattern string, wait ...time.Duration) ([]Service, error)