In this article
A oneshot diagnostic needs an activation timeout; an active-runtime setting does not establish its expiry.
The operational scenario
An emergency diagnostic unit runs a bounded inspection as Type=oneshot. Its reviewer adds RuntimeMaxSec and believes the privileged action must expire at that boundary. The command remains in activation rather than completing startup into a normal running phase. Before treating this as a manager failure, check which lifecycle interval the selected setting actually controls and whether an explicit activation timeout was configured.
The trust-boundary mechanism
The systemd service documentation states that RuntimeMaxSec has no effect on Type=oneshot and directs readers to TimeoutStartSec for limiting activation. It also documents that the startup timeout is disabled by default for oneshot. Manager defaults therefore cannot be assumed to supply the expected limit. An action still starting and an already active long-running service are distinct states with different timeout contracts.
Define the control contract
Define the maximum allowed activation interval for the diagnostic action, the permitted resource scope and its cleanup owner. Preserve the effective unit including drop-ins and the installed manager behavior. A finite timeout is only part of the design: if termination requires subsequent cleanup, that phase needs its own observation. Avoid describing timeout configuration as a universal deadline for every external side effect the command may have started.
A step-by-step verification
First inspect the unit type and effective timeout fields without invoking privileged diagnostics. Next use a disposable harmless oneshot command that waits at a controlled checkpoint. Observe the variant relying only on RuntimeMaxSec, then a variant with explicit TimeoutStartSec under a finite test harness. Finally exercise a normally completing command so the chosen activation limit can be distinguished from a setup failure or an unrelated permission denial.
Evidence required for acceptance
Acceptance requires unit identity, activation start, manager state, timeout result and final owned-process observations. Record whether any cleanup remained pending after the manager classified failure. A timestamped command invocation alone is not evidence of expiry, and an inactive unit after normal completion does not demonstrate the timeout path. Keep administrative activation authorization separate from the evidence that its execution interval is actually bounded.
Failure cases and limits
This review concerns a oneshot start action, not service liveness pings or the full control-group kill policy. Changing the unit type solely to make a familiar setting work can change other lifecycle behavior and requires another review. The proposed fixture executes no live emergency access. It establishes whether the declared expiry uses the applicable lifecycle mechanism and leaves external credentials or persistent changes under explicit separate ownership.
Primary references and related reading
A oneshot diagnostic needs an activation timeout; an active-runtime setting does not establish its expiry. systemd service activation and runtime timeouts; systemd manager timeout defaults.
The proposed investigation of systemd oneshot runtime limit activation is a proposed control review; no live security test was executed. Related reading: Keep a service watchdog tied to useful progress; Terminate model workers with their service control group.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.