﻿# ExecCondition skip outcomes are different from failed service startup

ExecCondition skip outcomes are different from failed service startup. A focused service-reliability guide with the documented mechanism, a reproducible validation scenario, evidence and operational limits.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/sre-execcondition-skip-failed-unit/
Language: en

An ExecCondition command can prevent a systemd service from starting without marking the unit failed. That is different from a successful inference startup and different from a failed startup. A deployment report that counts every nonfailed activation as an available worker can therefore include a service whose main process was never launched.

## The service-manager contract

The documented ExecCondition contract treats ordinary exit codes from 1 through 254 as a skip under the default success policy, while 255 or abnormal termination marks failure. Zero or a status explicitly accepted by SuccessExitStatus continues execution. The effective success configuration therefore matters when interpreting a chosen code. Skip behavior is not identical to a unit-level Condition check, and stop-post handling can still be relevant. The main question is which lifecycle transition occurred, not whether an error-colored status happened to appear.

## Implementation details

Define a small reviewed exit-status contract for the condition program. Preserve effective SuccessExitStatus and the actual condition outcome alongside the main-process launch evidence. Keep intentional exclusion, prerequisite failure and service readiness as distinct states in capacity accounting. Do not repair a skipped activation by treating an absent process as a healthy idle worker. If several condition commands exist, preserve which one stopped the sequence and whether later launch stages ran. Observe the selected manager version because lifecycle details and supported settings are part of the integration being tested.

## A constructed validation case

Use a disposable condition program with controlled exits 0, 1 and 255 under a recorded default policy, then test one explicitly accepted nonzero status separately. Observe main-process invocation and manager outcome independently. Include abnormal termination as a different condition failure case. Acceptance requires correct skip-versus-failure classification and no fabricated worker capacity. It does not require every skipped unit to be considered unhealthy or every successful condition to establish that later model initialization completed. Preserve the actual condition configuration and command sequence.

## Recovery limits

ExecCondition is a launch-control interface, not a continuous health monitor. Readiness and liveness remain application contracts. Keep the states separate so a useful precondition mechanism does not silently inflate an inference pool's reported capacity or turn an intended exclusion into a misleading model-failure diagnosis.

## Primary references

[systemd systemd.service documented interface](https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html); [systemd systemd.unit documented interface](https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html).

This is a proposed service-lifecycle validation, not an executed Retrivium benchmark. Preserve the implementation version and unresolved outcomes; interface documentation does not establish the availability or correctness of an inference service.

## Related reading

[Startup, readiness and liveness for a slow-loading model server](/journal/provider-startup-readiness-liveness-separation/); [Golden inference API fixtures: test the contract rather than prose](/journal/provider-golden-contract-fixtures/).
