Concept
Services and the service manager
The short versionPermalink to The short version#
A service describes a supervised process or a oneshot command. Features produce those records; a service manager runs them. Vessel can generate dinit definitions or Vial service data from the same service model, and it refuses unsupported settings. The manager starts processes; the generation health check decides whether the boot is good.
Readiness is more than a process IDPermalink to Readiness is more than a process ID#
A daemon normally becomes started after launch. With notification readiness, it must write a byte to its declared ready descriptor. A oneshot becomes ready when its command exits successfully. Services also declare bounded start and stop timeouts and a restart policy with a delay and restart budget. Starting a process isn't a guarantee that its network protocol is usable.
The dependency kinds mean different things. A required dependency starts first and its failure blocks the dependent. An after edge orders services that are both starting without pulling another service in. An optional dependency is started and awaited, but its failure doesn't block the dependent. The service list is validated for missing dependencies and cycles before writing backend data. Programs use absolute paths and arguments are literal values; service environments are explicit rather than inherited from the builder.
Required for the trialPermalink to Required for the trial#
A service's required flag is separate from its dependency list. If a required service fails, the trial fails. A wanted service can fail without rejecting the generation, and its failure is still reported. The system's explicit health-check commands also count toward the decision.
The builder adds the generation health service after composition. It waits for the other services to start or fail through optional dependencies, then checks required services and runs the health commands. If it required every service as a dependency, one failure could prevent the health decision itself from running. Trial boots explains the result.
One service model, two backendsPermalink to One service model, two backends#
The dinit and vial features implement the abstract services receiver. A system needs exactly one service manager. The dinit backend writes service files under etc/dinit.d; the Vial backend writes validated data under etc/vial/services.sxp.
Vial has a small native PID 1 and a Sigil manager. PID 1 reaps children and handles final shutdown. If the manager dies on a trial, it reboots to let the selector fall back. On a good generation it leaves services running and starts a console shell. Vial can't switch service accounts yet, so a Vial system with a service user is refused. Switching backends on a running system, manager recovery and per-user services aren't supported yet.
Choosing a backend changes the system you build; it doesn't replace PID 1 in the running session. On an installed 2026.1 system, the builder can use only the packages the installed system already runs. The installer sets up dinit, so Vial isn't among them, and an installed system can't switch to it yet.
In practicePermalink to In practice#
The dinit feature and Vial feature reference pages show their declarations. Read Features for how service records reach them. There's no guide to switching an installed system to Vial yet.