Files
computer-playbook/roles/sys-daemon
kevinveenbirkenbach a0eec88632 fix(systemd): make daemon reload synchronous and add ExecStartPost hook
Remove async execution from systemd daemon reload/reexec handlers to avoid race
conditions when starting freshly deployed units.

Also add support for ExecStartPost in sys-ctl-alm-compose service templates to
allow post-start success hooks.

This prevents timing issues where template services were started before systemd
had fully reloaded unit definitions.

https://chatgpt.com/share/6965754a-ac94-800f-b25c-7a07c8d33d1a
2026-01-12 23:27:15 +01:00
..
2025-12-24 20:41:03 +01:00
…

sys-daemon

Description

Role to reset and configure the systemd manager for Infinito.Nexus.
It ensures a clean state of the manager configuration and applies default timeout values.

Overview

  • Purges the systemd manager drop-in directory if requested.
  • Validates all active unit files before reload/reexec.
  • Applies default timeout values for systemd manager behavior.
  • Provides handler-based reload/reexec for systemd.

Features

  • Drop-in Purge: Optionally remove /etc/systemd/system.conf.d contents.
  • Manager Defaults: Deploys custom timeouts via timeouts.conf.
  • Validation: Uses systemd-analyze verify before reload.
  • Integration: Triggers daemon-reload or daemon-reexec safely.

Further Resources