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

7 lines
235 B
Django/Jinja

[Unit]
Description={{item}} systemctl maintanance services
OnFailure=systemd-notifier@%n.service
[Service]
Type=oneshot
ExecStart=/bin/sh -c '/usr/bin/python {{ freezer_script }} {{item}} {{ system_maintenance_services | join(",") }}'