feat(enroll): decnet-updater now runs under systemd, not a --daemon fork

Bootstrap used to end with `decnet updater --daemon` which forks and
detaches — invisible to systemctl, no auto-restart, dies on reboot.
Ships a decnet-updater.service template matching the pattern of the
other units (Restart=on-failure, log to /var/log/decnet/decnet.updater.log,
certs from /etc/decnet/updater, install tree at /opt/decnet), bundles
it alongside agent/forwarder/engine units, and the installer now
`systemctl enable --now`s it when --with-updater is set.
This commit is contained in:
2026-04-19 18:19:24 -04:00
parent 42b5e4cd06
commit a0a241f65d
4 changed files with 42 additions and 9 deletions

View File

@@ -250,7 +250,7 @@ def _build_tarball(
return buf.getvalue()
_SYSTEMD_UNITS = ("decnet-agent", "decnet-forwarder", "decnet-engine")
_SYSTEMD_UNITS = ("decnet-agent", "decnet-forwarder", "decnet-engine", "decnet-updater")
def _render_systemd_unit(name: str, agent_name: str, master_host: str) -> bytes: