diff --git a/roles/backup/templates/backup.service b/roles/backup/templates/backup.service index 7106cb1..bbe05bc 100644 --- a/roles/backup/templates/backup.service +++ b/roles/backup/templates/backup.service @@ -3,11 +3,15 @@ Description=Nightly backup service After=network-online.target Wants=network-online.target +StartLimitInterval=600 +StartLimitBurst=5 [Service] Type=oneshot MemoryMax=256M ExecStart=/opt/backup.sh +Restart=on-failure +RestartSec=5 [Install] WantedBy=multi-user.target