Kevin Veen-Birkenbach 7ad14673e1
sys-service: add ExecStartPost support and adjust health/repair roles
- extended generic systemctl template to support ExecStartPost
- health-docker-volumes: run main script with whitelist, trigger both compose alarm and cleanup on failure
- repair-docker-hard: added ExecStartPre lock, ExecStart, and ExecStartPost to trigger compose alarm always, plus cleanup on failure
- removed obsolete role-specific systemctl.service.j2 templates
- improved consistency across vars and defaults

See: https://chatgpt.com/share/68ad6cb8-c164-800f-96b6-a45c6c7779b3
2025-08-26 10:15:35 +02:00
..

sys-service

Description

Role to manage systemd service units for Infinito.Nexus software stacks.
It installs or removes unit files, configures runtime behavior, and ensures services are properly deployed.

Overview

  • Resets service units by removing old or obsolete definitions.
  • Deploys new service unit files and service scripts.
  • Optionally sets up timers linked to the services.
  • Ensures correct reload/restart behavior across the stack.

Features

  • Unit Cleanup: Automated removal of old service units.
  • Custom Templates: Supports both systemctl.service.j2 and systemctl@.service.j2.
  • Timers: Integrates with sys-timer for scheduled execution.
  • Runtime Limits: Configurable RuntimeMaxSec per service.
  • Handlers: Automatic reload/restart of services when definitions change.

Further Resources