Verified Commit 3f6b3ada authored by Evangelos Foutras's avatar Evangelos Foutras 🐱
Browse files

borg_client: drop Restart=on-failure from services

When a backup job fails it is usually something we want to look into and
understand its root cause before restarting the backup job. Therefore we
need to disable the restart-on-failure behavior we had previously set up.
parent 9429815c
...@@ -3,7 +3,5 @@ Description=Borg backup (offsite) ...@@ -3,7 +3,5 @@ Description=Borg backup (offsite)
[Service] [Service]
Type=oneshot Type=oneshot
Restart=on-failure
RestartSec=5m
{% include 'borg-backup-cpu-quota.j2' %} {% include 'borg-backup-cpu-quota.j2' %}
ExecStart=/usr/local/bin/borg-backup-offsite.sh ExecStart=/usr/local/bin/borg-backup-offsite.sh
...@@ -6,7 +6,5 @@ Before=borg-backup-offsite.service ...@@ -6,7 +6,5 @@ Before=borg-backup-offsite.service
[Service] [Service]
Type=oneshot Type=oneshot
Restart=on-failure
RestartSec=5m
{% include 'borg-backup-cpu-quota.j2' %} {% include 'borg-backup-cpu-quota.j2' %}
ExecStart=/usr/local/bin/borg-backup.sh ExecStart=/usr/local/bin/borg-backup.sh
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment