summaryrefslogtreecommitdiff
path: root/systemd/restic-check.service
blob: 089255430602e351864d6f3df2c7192097703526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 (allow swap for safety)
MemoryMax=512M
MemorySwapMax=1G

[Install]
WantedBy=timers.target