homeserver/roles/mgrote.zfs_scrub/templates/zpool-scrub@.service.j2

11 lines
215 B
Django/Jinja

{{ file_header | default () }}
[Unit]
Description=Scrub ZFS pool "%i"
Requires=zfs.target
After=zfs.target
OnFailure=zpool-scrub-mail.service
[Service]
Type=simple
ExecStart={{ zfs_extra_path_zpool }} scrub -w %i