io.systemd.Manager¶
| Property | Value |
|---|---|
| Go package | github.com/rossedman/sdvarlink/systemd/latest/manager |
| Socket | /run/systemd/io.systemd.Manager |
| Available since | systemd v258 |
| Methods · types · errors | 9 · 12 · 1 |
Methods¶
Describe¶
Reply
| Field | Type | Description |
|---|---|---|
context |
ManagerContext |
Configuration of the manager |
runtime |
ManagerRuntime |
Runtime information of the manager |
Reexecute¶
since v260
Reexecute the main manager process
Reload¶
since v260
Reload the manager configuration
EnqueueMarkedJobs¶
streaming optional · since v260
Enqueue all marked jobs
func (c *Client) EnqueueMarkedJobs(ctx context.Context) (*EnqueueMarkedJobsOut, error)
func (c *Client) EnqueueMarkedJobsMore(ctx context.Context) iter.Seq2[*EnqueueMarkedJobsOut, error]
Reply
| Field | Type | Description |
|---|---|---|
unitID |
?string |
Enqueued unit ID |
jobID |
?int |
ID of enqueued job (if successful) |
error |
?string |
Varlink error ID (on failure) |
errorMessage |
?string |
Job enqueue error message (on failure) |
PowerOff¶
since v262
Power off the system
Reboot¶
since v262
Reboot the system
Halt¶
since v262
Halt the system
KExec¶
since v262
Reboot the system via kexec
SoftReboot¶
since v262
Soft-reboot the userspace
Parameters
| Field | Type | Description |
|---|---|---|
root |
?string |
New root directory for the soft reboot |
Types¶
LogTarget¶
| Value | Description |
|---|---|
console |
|
kmsg |
|
journal |
|
syslog |
|
console_prefixed |
|
journal_or_kmsg |
|
syslog_or_kmsg |
|
auto |
|
null |
OOMPolicy¶
| Value | Description |
|---|---|
continue |
|
stop |
|
kill |
ExecOutputType¶
| Value | Description |
|---|---|
inherit |
|
null |
|
tty |
|
kmsg |
|
kmsg_console |
|
journal |
|
journal_console |
|
socket |
|
fd |
|
file |
|
append |
|
truncate |
CGroupPressureWatch¶
| Value | Description |
|---|---|
no |
|
yes |
|
auto |
|
skip |
EmergencyAction¶
| Value | Description |
|---|---|
none |
|
exit |
|
exit_force |
|
reboot |
|
reboot_force |
|
reboot_immediate |
|
poweroff |
|
poweroff_force |
|
poweroff_immediate |
|
soft_reboot |
|
soft_reboot_force |
|
kexec |
|
kexec_force |
|
halt |
|
halt_force |
|
halt_immediate |
ManagerContext¶
| Field | Type | Description |
|---|---|---|
ShowStatus |
bool |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#LogColor= |
LogLevel |
LogLevelStruct |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#LogColor= |
LogTarget |
LogTarget |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#LogColor= |
Environment |
?[]string |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#ManagerEnvironment= |
DefaultStandardOutput |
ExecOutputType |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultStandardOutput= |
DefaultStandardError |
ExecOutputType |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultStandardError= |
ServiceWatchdogs |
bool |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#ServiceWatchdogs= |
DefaultTimerAccuracyUSec |
int |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultTimerAccuracySec= |
DefaultTimeoutStartUSec |
int |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultTimeoutStartSec= |
DefaultTimeoutStopUSec |
int |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultTimeoutStopSec= |
DefaultTimeoutAbortUSec |
int |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultTimeoutAbortSec= |
DefaultDeviceTimeoutUSec |
int |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultDeviceTimeoutSec= |
DefaultRestartUSec |
int |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultRestartSec= |
DefaultStartLimit |
?RateLimit |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultStartLimit= |
DefaultIOAccounting |
bool |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultIOAccounting= |
DefaultIPAccounting |
bool |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultIPAccounting= |
DefaultMemoryAccounting |
bool |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultMemoryAccounting= |
DefaultTasksAccounting |
bool |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultTasksAccounting= |
DefaultLimits |
ResourceLimitTable |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultLimitCPU= |
DefaultTasksMax |
int |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultTasksMax= |
DefaultMemoryPressureThresholdUSec |
int |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultMemoryPressureThresholdUSec= |
DefaultMemoryPressureWatch |
CGroupPressureWatch |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultMemoryPressureWatch= |
DefaultCPUPressureThresholdUSec |
int |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultCPUPressureThresholdUSec= |
DefaultCPUPressureWatch |
CGroupPressureWatch |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultCPUPressureWatch= |
DefaultIOPressureThresholdUSec |
int |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultIOPressureThresholdUSec= |
DefaultIOPressureWatch |
CGroupPressureWatch |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultIOPressureWatch= |
RuntimeWatchdogUSec |
?int |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#RuntimeWatchdogSec= |
RebootWatchdogUSec |
?int |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#RebootWatchdogSec= |
KExecWatchdogUSec |
?int |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#KExecWatchdogSec= |
RuntimeWatchdogPreUSec |
?int |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#RuntimeWatchdogPreSec= |
RuntimeWatchdogPreGovernor |
?string |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#RuntimeWatchdogPreGovernor= |
WatchdogDevice |
?string |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#WatchdogDevice= |
TimerSlackNSec |
int |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#TimerSlackNSec= |
DefaultOOMPolicy |
OOMPolicy |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultOOMPolicy= |
DefaultOOMScoreAdjust |
int |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultOOMScoreAdjust= |
DefaultRestrictSUIDSGID |
bool |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultRestrictSUIDSGID= |
CtrlAltDelBurstAction |
EmergencyAction |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#CtrlAltDelBurstAction= |
ConfirmSpawn |
?string |
The console on which systemd asks for confirmation when spawning processes |
ControlGroup |
?string |
Root of the control group hierarchy that the manager is running in |
DefaultMemoryZSwapWriteback |
bool |
https://www.freedesktop.org/software/systemd/man/262/systemd-system.conf.html#DefaultMemoryZSwapWriteback= |
ManagerRuntime¶
| Field | Type | Description |
|---|---|---|
Version |
string |
The version string of the running systemd instance |
Architecture |
string |
A short ID string describing the architecture the systemd instance is running on |
Features |
string |
The features that have been enabled and disabled for this build |
Taints |
?[]string |
An array of strings describing the taints applied to the running system |
UnitPath |
[]string |
The unit search path |
Virtualization |
string |
A short ID string describing the virtualization technology the system runs in |
ConfidentialVirtualization |
string |
A short ID string describing the confidential virtualization technology the system runs in |
FirmwareTimestamp |
?Timestamp |
Timestamp when the firmware first began execution |
LoaderTimestamp |
?Timestamp |
Timestamp when the boot loader first began execution |
KernelTimestamp |
?Timestamp |
Timestamp when the kernel first began execution |
InitRDTimestamp |
?Timestamp |
Timestamp when the initrd first began execution |
UserspaceTimestamp |
?Timestamp |
Timestamp when the initrd first began execution |
FinishTimestamp |
?Timestamp |
Timestamp when the system finished booting up |
ShutdownStartTimestamp |
?Timestamp |
Timestamp when shutdown began, i.e. when units started to be stopped |
ShutdownFinishTimestamp |
?Timestamp |
Timestamp when all units finished stopping during shutdown |
PreviousShutdownStartTimestamp |
?Timestamp |
Timestamp when the previous boot began stopping units, restored across a kexec-based live update |
PreviousShutdownFinishTimestamp |
?Timestamp |
Timestamp when the previous boot finished stopping units, restored across a kexec-based live update |
PreviousShutdownLateStartTimestamp |
?Timestamp |
Timestamp when systemd-shutdown began execution during the previous boot, restored across a kexec-based live update |
PreviousShutdownLateFinishTimestamp |
?Timestamp |
Timestamp when systemd-shutdown was about to kexec into the current kernel, restored across a kexec-based live update |
SecurityStartTimestamp |
?Timestamp |
Timestamp when the manager started uploading security policies to the kernel |
SecurityFinishTimestamp |
?Timestamp |
Timestamp when the manager finished uploading security policies to the kernel |
GeneratorsStartTimestamp |
?Timestamp |
Timestamp when the manager started executing generators |
GeneratorsFinishTimestamp |
?Timestamp |
Timestamp when the manager finished executing generators |
UnitsLoadStartTimestamp |
?Timestamp |
Timestamp when the manager first started loading units |
UnitsLoadFinishTimestamp |
?Timestamp |
Timestamp when the manager first finished loading units |
UnitsLoadTimestamp |
?Timestamp |
Timestamp when the manager last started loading units |
InitRDSecurityStartTimestamp |
?Timestamp |
Timestamp when the manager started uploading security policies to the kernel in the initrd |
InitRDSecurityFinishTimestamp |
?Timestamp |
Timestamp when the manager finished uploading security policies to the kernel in the initrd |
InitRDGeneratorsStartTimestamp |
?Timestamp |
Timestamp when the manager started executing generators in the initrd |
InitRDGeneratorsFinishTimestamp |
?Timestamp |
Timestamp when the manager finished executing generators in the initrd |
InitRDUnitsLoadStartTimestamp |
?Timestamp |
Timestamp when the manager first started loading units in the initrd |
InitRDUnitsLoadFinishTimestamp |
?Timestamp |
Timestamp when the manager first finished loading units in the initrd |
NNames |
int |
The amount of unique unit names currently loaded |
NFailedUnits |
int |
The amount of failed units |
NJobs |
int |
The amount of currently queued jobs |
NInstalledJobs |
int |
The total amount of queued jobs |
NFailedJobs |
int |
The total amount of failed jobs |
TransactionsWithOrderingCycle |
?[]int |
IDs of transactions that encountered ordering cycle |
Progress |
float |
Boot progress as a floating point value between 0.0 and 1.0 |
WatchdogLastPingTimestamp |
?Timestamp |
Timestamp when the hardware watchdog was last pinged |
SystemState |
string |
Current state of the system |
ExitCode |
int |
Exit code of the manager |
SoftRebootsCount |
int |
Encodes how many soft-reboots were successfully completed |
KExecCount |
int |
Encodes how many consecutive kexec reboots were successfully completed since the last full boot. Zero if the Live Update Orchestrator is not available. |
ReloadCount |
int |
Number of successfully completed configuration reloads |
Timestamp¶
| Field | Type | Description |
|---|---|---|
realtime |
?int |
Timestamp in µs in the CLOCK_REALTIME clock (wallclock) |
monotonic |
?int |
Timestamp in µs in the CLOCK_MONOTONIC clock |
ResourceLimit¶
| Field | Type | Description |
|---|---|---|
soft |
?int |
The soft resource limit. RLIM_INFINITY is mapped to unset value |
hard |
?int |
The hard resource limit. RLIM_INFINITY is mapped to unset value |
ResourceLimitTable¶
| Field | Type | Description |
|---|---|---|
CPU |
?ResourceLimit |
See setrlimit(2) for details |
FSIZE |
?ResourceLimit |
|
DATA |
?ResourceLimit |
|
STACK |
?ResourceLimit |
|
CORE |
?ResourceLimit |
|
RSS |
?ResourceLimit |
|
NOFILE |
?ResourceLimit |
|
AS |
?ResourceLimit |
|
NPROC |
?ResourceLimit |
|
MEMLOCK |
?ResourceLimit |
|
LOCKS |
?ResourceLimit |
|
SIGPENDING |
?ResourceLimit |
|
MSGQUEUE |
?ResourceLimit |
|
NICE |
?ResourceLimit |
|
RTPRIO |
?ResourceLimit |
|
RTTIME |
?ResourceLimit |
RateLimit¶
| Field | Type | Description |
|---|---|---|
intervalUSec |
?int |
The ratelimit interval |
burst |
?int |
The ratelimit burst |
LogLevelStruct¶
| Field | Type | Description |
|---|---|---|
console |
string |
'console' target log level |
kmsg |
string |
'kmsg' target log level |
syslog |
string |
'syslog' target log level |
journal |
string |
'journal' target log level |
Errors¶
| Error | Go type | Description |
|---|---|---|
RateLimitReached |
RateLimitReachedError |