Skip to content

Systemd API

Method NameRequest TypeResponse TypeDescription
StartApplicationAppUnitRequestUnitResponseStart remote application (session service)
StartUnitUnitRequestUnitResponseStart systemd unit (any, if whitelisted)
StopUnitUnitRequestUnitResponseStop systemd unit (any, if whitelisted)
KillUnitUnitRequestUnitResponseKill systemd unit (any, if whitelisted)
FreezeUnitUnitRequestUnitResponseFreeze/pause systemd unit (any, if whitelisted)
UnfreezeUnitUnitRequestUnitResponseUnfreeze/resume systemd unit (any, if whitelisted)
GetUnitStatusUnitRequestUnitResponseGet systemd unit status (any, if whitelisted)
MonitorUnitUnitResourceRequestUnitResourceResponseObsolete monitoring function
FieldTypeLabelDescription
UnitNamestringSystemd unit name of the application
ArgsstringrepeatedApplication arguments
FieldTypeLabelDescription
UnitNamestringFull systemd unit name
FieldTypeLabelDescription
UnitNamestring
FieldTypeLabelDescription
cpu_usagedouble
memory_usagefloat
FieldTypeLabelDescription
UnitStatusUnitStatusUnits systemd status

Systemd Unit Status

FieldTypeLabelDescription
NamestringFull systemd unit name
DescriptionstringA short human readable title of the unit
LoadStatestringLoadState contains a state value that reflects whether the configuration file of this unit has been loaded
ActiveStatestringActiveState contains a state value that reflects whether the unit is currently active or not
SubStatestringSubState encodes more fine-grained states that are unit-type-specific
PathstringBus object path of the unit
FreezerStatestringFreezer sub-state, indicates whether unit is frozen
.proto TypeNotesGo Type
doublefloat64
floatfloat32
int32Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.int32
int64Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.int64
uint32Uses variable-length encoding.uint32
uint64Uses variable-length encoding.uint64
sint32Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.int32
sint64Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.int64
fixed32Always four bytes. More efficient than uint32 if values are often greater than 2^28.uint32
fixed64Always eight bytes. More efficient than uint64 if values are often greater than 2^56.uint64
sfixed32Always four bytes.int32
sfixed64Always eight bytes.int64
boolbool
stringA string must always contain UTF-8 encoded or 7-bit ASCII text.string
bytesMay contain any arbitrary sequence of bytes.[]byte