diff options
Diffstat (limited to 'systemd/restic-check.service')
| -rw-r--r-- | systemd/restic-check.service | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/systemd/restic-check.service b/systemd/restic-check.service new file mode 100644 index 0000000..66d87f1 --- /dev/null +++ b/systemd/restic-check.service @@ -0,0 +1,17 @@ +[Unit] +Description=Restic Weekly Repository Integrity Check +Wants=network-online.target +After=network.target network-online.target + +[Service] +Type=oneshot +# ExecStart path will be replaced by setup.sh during installation +ExecStart=/path/to/be/replaced/restic_check.sh +# Environment variable will be set by setup.sh based on scope +Environment="HOME=/root" +# Memory limits to prevent OOM on VPS +MemoryMax=500M +MemorySwapMax=500M + +[Install] +WantedBy=timers.target |
