computer-playbook/roles/system-maintenance-service-freezer/templates/system-maintenance-service-freezer.service.j2

8 lines
470 B
Plaintext
Raw Normal View History

[Unit]
2023-12-14 00:15:01 +01:00
Description={{item}} systemctl maintenance services
OnFailure=systemd-notifier@%n.service
[Service]
Type=oneshot
2023-12-14 21:26:43 +01:00
ExecStartPre=/bin/sh -c '/usr/bin/python {{ path_system_maintenance_service_freezer_script }} {{item}} {{ system_maintenance_services | join(' ') }} --timeout "{{system_maintenance_timeout_defroster}}"'
2023-12-14 21:12:25 +01:00
ExecStart=/bin/sh -c '/usr/bin/python {{ path_system_maintenance_service_freezer_script }} {{item}} {{ system_maintenance_services | join(' ') }}'