diff --git a/zfs-scrub@.service b/zfs-scrub@.service new file mode 100644 index 0000000..2a78d80 --- /dev/null +++ b/zfs-scrub@.service @@ -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 diff --git a/zfs-scrub@.timer b/zfs-scrub@.timer new file mode 100644 index 0000000..506b5b2 --- /dev/null +++ b/zfs-scrub@.timer @@ -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