Added zpool scrub timer/service

This commit is contained in:
BrainwreckedTech 2021-07-05 00:06:27 -04:00
parent 4e909b3bde
commit c4934dc271
2 changed files with 21 additions and 0 deletions

11
zfs-scrub@.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=zpool scrub on %i
[Service]
Nice=19
IOSchedulingClass=idle
KillSignal=SIGINT
ExecStart=/usr/bin/zpool scrub %i
[Install]
WantedBy=multi-user.target

10
zfs-scrub@.timer Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=Monthly zpool scrub on %i
[Timer]
OnCalendar=Sun *-*-1..7 00:00:00
AccuracySec=1h
Persistent=true
[Install]
WantedBy=multi-user.target