homeserver/roles/mgrote.cv4pve-autosnap/templates/cv4pve.service.j2
mg 17f0ca874e cv4pve auf systemd umgestellt (#344)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#344
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
2022-03-28 14:48:31 +02:00

9 lines
383 B
Django/Jinja

{{ file_header | default () }}
[Unit]
Description=Trigger VM-Snapshots in PVE with cv4pve.
After=multi-user.target
OnFailure=cv4pve_mail.service
[Service]
Type=simple
ExecStart=/usr/local/bin/cv4pve/cv4pve-autosnap --host=127.0.0.1 --api-token {{ cv4pve_api_user }}={{ cv4pve_api_token }} --vmid="{{ cv4pve_vmid }}" snap --label='daily' --keep="{{ cv4pve_keep_snapshots }}" --state