Skip to content

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 4 · 7 · 1

Methods

Describe

func (c *Client) Describe(ctx context.Context) (*DescribeOut, error)

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

func (c *Client) Reexecute(ctx context.Context) error

Reload

since v260

Reload the manager configuration

func (c *Client) Reload(ctx context.Context) error

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)

Types

ManagerContext

Field Type Description
ShowStatus bool https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#LogColor=
LogLevel LogLevelStruct https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#LogColor=
LogTarget string https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#LogColor=
Environment ?[]string https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#ManagerEnvironment=
DefaultStandardOutput string https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultStandardOutput=
DefaultStandardError string https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultStandardError=
ServiceWatchdogs bool https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#ServiceWatchdogs=
DefaultTimerAccuracyUSec int https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultTimerAccuracySec=
DefaultTimeoutStartUSec int https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultTimeoutStartSec=
DefaultTimeoutStopUSec int https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultTimeoutStopSec=
DefaultTimeoutAbortUSec int https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultTimeoutAbortSec=
DefaultDeviceTimeoutUSec int https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultDeviceTimeoutSec=
DefaultRestartUSec int https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultRestartSec=
DefaultStartLimit ?RateLimit https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultStartLimit=
DefaultIOAccounting bool https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultIOAccounting=
DefaultIPAccounting bool https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultIPAccounting=
DefaultMemoryAccounting bool https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultMemoryAccounting=
DefaultTasksAccounting bool https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultTasksAccounting=
DefaultLimits ResourceLimitTable https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultLimitCPU=
DefaultTasksMax int https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultTasksMax=
DefaultMemoryPressureThresholdUSec int https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultMemoryPressureThresholdUSec=
DefaultMemoryPressureWatch string https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultMemoryPressureWatch=
RuntimeWatchdogUSec ?int https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#RuntimeWatchdogSec=
RebootWatchdogUSec ?int https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#RebootWatchdogSec=
KExecWatchdogUSec ?int https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#KExecWatchdogSec=
RuntimeWatchdogPreUSec ?int https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#RuntimeWatchdogPreSec=
RuntimeWatchdogPreGovernor ?string https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#RuntimeWatchdogPreGovernor=
WatchdogDevice ?string https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#WatchdogDevice=
TimerSlackNSec int https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#TimerSlackNSec=
DefaultOOMPolicy string https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultOOMPolicy=
DefaultOOMScoreAdjust int https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultOOMScoreAdjust=
DefaultRestrictSUIDSGID bool https://www.freedesktop.org/software/systemd/man/260/systemd-system.conf.html#DefaultRestrictSUIDSGID=
CtrlAltDelBurstAction string https://www.freedesktop.org/software/systemd/man/260/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

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
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

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