Reference

services feature

What it does

Supervised processes. dinit-feature and vial-feature implement it.

This is an abstract feature type: it has no instances of its own. Feature types that implement it receive what is sent to it.

Use it

Nothing uses this type directly. Features send items to it, and the feature that implements it receives them. This part of a system configuration sends one:

Example: feature-services-example

(import (vessel system)
        (vessel services records))

;; A one-shot service. dinit, from the base features, receives it.
(system-configuration
  features:
    (cons (simple-feature 'clock services-feature
            (list (service name: "clock-service" kind: 'oneshot
                           argv: '("/bin/hwclock" "--hctosys"))))
          %base-features))

Verified

A real system.sgl also sets the fields this example leaves out: the host name, kernel, boot loader and file systems. Every time the manual is built, it composes this configuration with Vessel's code and checks what the feature receives.

Options

None. This feature type takes no configuration.

What it adds

It sends nothing to other feature types.

What it receives

  • service: A service record, claimed by its name.

Used in

Created with Sigil