Expand description
Crate to manage and monitor services through systemctl
Homepage: https://github.com/gwbres/systemctl
Structs
- Structure to describe a systemd
unit
- Implementation of list generated with
systemctl list-unit-files
Enums
AutoStartStatus
describes the Unit current state- Doc describes types of documentation possibly available for a systemd
unit
State
describes a Unit current stateType
describes a Unit declaration Type in systemd
Functions
- Invokes systemctl
cat
on givenunit
- Disable given
unit
to start at boot - Enable given
unit
to start at boot - Returns
true
if givenunit
exists, ie., service could be or is actively deployed and manageable by systemd - Freezes (halts) given unit. This operation might not be feasible.
- Returns
true
if givenunit
is actively running - Isolates given unit, only self and its dependencies are now actively running
- Returns list of services that are currently declared as disabled
- Returns list of services that are currently declared as enabled
- Returns a
Vector
of unit names extracted from systemctl listing. - Returns a
Vector
ofUnitList
structs extracted from systemctl listing. - Triggers reload for given
unit
- Triggers reload or restarts given
unit
- Forces given
unit
to (re)start - Forces given
unit
to start - Returns raw status from
systemctl status $unit
call - Forces given
unit
to stop - Unfreezes given unit (recover from halted state). This operation might not be feasible.