mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-13 22:26:49 +00:00
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
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.dcontents. - Manager Defaults: Deploys custom timeouts via
timeouts.conf. - Validation: Uses
systemd-analyze verifybefore reload. - Integration: Triggers
daemon-reloadordaemon-reexecsafely.