SystemctlRunner Class

Assembly
Cake.Systemctl.dll
Namespace
Cake.Systemctl
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["SystemctlRunner"] class Type type-node

Syntax

public class SystemctlRunner

Constructors

Methods

Name Value Summary
DaemonReload() void
Reload systemd manager configuration. This will rerun all generators, reload all unit files, and recreate the entire dependency tree. While the daemon is being reloaded, all sockets systemd listens on behalf of user configuration will stay accessible.
ListUnitFiles() List<UnitFile>
List unit files installed on the system.
ListUnitFiles(ListUnitFilesSettings) List<UnitFile>
List unit files installed on the system.
ListUnits() List<Unit>
List units that currently was loaded to memory.
ListUnits(ListUnitsSettings) List<Unit>
List units that currently was loaded to memory.
ShowUnit(ShowUnitSettings) IDictionary<string, string>
Show properties of the unit
StartUnit(UnitSettings) void
Start (activate) unit.
StopUnit(UnitSettings) void
Stop (deactivate) unit.

Extension Methods

Name Value Summary
Dump<SystemctlRunner>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<SystemctlRunner>(SystemctlRunner[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<SystemctlRunner>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<SystemctlRunner>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<SystemctlRunner>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<SystemctlRunner>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin