Creates the decnet system user/group, installs every unit file from
deploy/ into /etc/systemd/system, drops the polkit rule, seeds
/opt/decnet + /var/{lib,log}/decnet + /etc/decnet + /run/decnet,
writes a placeholder /etc/decnet/config.ini, applies the new
tmpfiles.d entry so /run/decnet survives reboots, daemon-reloads,
and `systemctl enable --now decnet.target`.
Idempotent (re-runs print [SKIP] on already-configured items),
--dry-run previews the plan without touching anything, --no-start
defers the target start, --force overwrites even matching unit
files. Master-only (added to MASTER_ONLY_COMMANDS).
9 orchestration tests cover the non-root gate, dry-run, useradd/
groupadd argv, SKIP on present user/group, unit-file idempotency,
--force overwrite, --no-start suppression, happy path, and the
"deploy/ not found" error message.
5 lines
234 B
Plaintext
5 lines
234 B
Plaintext
# /run/decnet hosts bus.sock (UDS, 0660, group=decnet).
|
|
# tmpfiles.d recreates it on every boot before any decnet-*.service starts,
|
|
# so the bus worker never silently falls back to ~/.decnet/bus.sock.
|
|
d /run/decnet 0755 root decnet -
|