mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 06:55:23 +02:00
This commit restructures systemctl service definitions and category mappings. Motivation: Alarm-related bugs revealed inconsistencies in service and role handling. Preparation step: lays the groundwork for fixing the alarm issues by aligning categories, roles, and service templates.
8 lines
456 B
Django/Jinja
8 lines
456 B
Django/Jinja
[Unit]
|
|
Description=Cleaning up failed docker volume backups
|
|
OnFailure=sys-ctl-alm-compose.{{ SOFTWARE_NAME }}@%n.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStartPre=/bin/sh -c '/usr/bin/python {{ PATH_SYSTEM_LOCK_SCRIPT }} {{ SYS_SERVICE_GROUP_MANIPULATION | join(' ') }} --ignore {{SYS_SERVICE_GROUP_CLEANUP| join(' ') }} --timeout "{{SYS_TIMEOUT_CLEANUP_SERVICES}}"'
|
|
ExecStart=/bin/sh -c '/usr/bin/yes | /usr/bin/bash {{backup_docker_to_local_cleanup_script}}' |