Systemd API
Table of Contents
Section titled “Table of Contents”Systemd Service API (systemd/systemd.proto)
Section titled “Systemd Service API (systemd/systemd.proto)”Services
Section titled “Services”UnitControlService
Section titled “UnitControlService”| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| StartApplication | AppUnitRequest | UnitResponse | Start remote application (session service) |
| StartUnit | UnitRequest | UnitResponse | Start systemd unit (any, if whitelisted) |
| StopUnit | UnitRequest | UnitResponse | Stop systemd unit (any, if whitelisted) |
| KillUnit | UnitRequest | UnitResponse | Kill systemd unit (any, if whitelisted) |
| FreezeUnit | UnitRequest | UnitResponse | Freeze/pause systemd unit (any, if whitelisted) |
| UnfreezeUnit | UnitRequest | UnitResponse | Unfreeze/resume systemd unit (any, if whitelisted) |
| GetUnitStatus | UnitRequest | UnitResponse | Get systemd unit status (any, if whitelisted) |
| MonitorUnit | UnitResourceRequest | UnitResourceResponse | Obsolete monitoring function |
Messages
Section titled “Messages”AppUnitRequest
Section titled “AppUnitRequest”| Field | Type | Label | Description |
|---|---|---|---|
| UnitName | string | Systemd unit name of the application | |
| Args | string | repeated | Application arguments |
UnitRequest
Section titled “UnitRequest”| Field | Type | Label | Description |
|---|---|---|---|
| UnitName | string | Full systemd unit name |
UnitResourceRequest
Section titled “UnitResourceRequest”| Field | Type | Label | Description |
|---|---|---|---|
| UnitName | string |
UnitResourceResponse
Section titled “UnitResourceResponse”| Field | Type | Label | Description |
|---|---|---|---|
| cpu_usage | double | ||
| memory_usage | float |
UnitResponse
Section titled “UnitResponse”| Field | Type | Label | Description |
|---|---|---|---|
| UnitStatus | UnitStatus | Units systemd status |
UnitStatus
Section titled “UnitStatus”Systemd Unit Status
| Field | Type | Label | Description |
|---|---|---|---|
| Name | string | Full systemd unit name | |
| Description | string | A short human readable title of the unit | |
| LoadState | string | LoadState contains a state value that reflects whether the configuration file of this unit has been loaded |
|
| ActiveState | string | ActiveState contains a state value that reflects whether the unit is currently active or not |
|
| SubState | string | SubState encodes more fine-grained states that are unit-type-specific |
|
| Path | string | Bus object path of the unit | |
| FreezerState | string | Freezer sub-state, indicates whether unit is frozen |