Expand description
Crate to manage and monitor services through systemctl
Homepage: https://github.com/gwbres/systemctl
Structs
- Structure to describe a systemdunit
- Implementation of list generated withsystemctl list-unit-files
Enums
- AutoStartStatusdescribes the Unit current state
- Doc describes types of documentation possibly available for a systemdunit
- Statedescribes a Unit current state
- Typedescribes a Unit declaration Type in systemd
Functions
- Invokes systemctlcaton givenunit
- Disable givenunitto start at boot
- Enable givenunitto start at boot
- Returnstrueif givenunitexists, ie., service could be or is actively deployed and manageable by systemd
- Freezes (halts) given unit. This operation might not be feasible.
- Returnstrueif givenunitis 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 aVectorof unit names extracted from systemctl listing.
- Returns aVectorofUnitListstructs extracted from systemctl listing.
- Triggers reload for givenunit
- Triggers reload or restarts givenunit
- Forces givenunitto (re)start
- Forces givenunitto start
- Returns raw status fromsystemctl status $unitcall
- Forces givenunitto stop
- Unfreezes given unit (recover from halted state). This operation might not be feasible.