aboutsummaryrefslogtreecommitdiff
path: root/systemd/restic-check.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/restic-check.service')
-rw-r--r--systemd/restic-check.service5
1 files changed, 3 insertions, 2 deletions
diff --git a/systemd/restic-check.service b/systemd/restic-check.service
index 0892554..78f92f8 100644
--- a/systemd/restic-check.service
+++ b/systemd/restic-check.service
@@ -7,8 +7,9 @@ After=network.target network-online.target
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"
+# Environment variable for restic configuration
+Environment="RESTIC_ENV_FILE=/path/to/be/replaced"
+# HOME will be set by setup.sh for system scope only
# Memory limits to prevent OOM on VPS (allow swap for safety)
MemoryMax=512M
MemorySwapMax=1G