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

14 lines
316 B
Text
Raw Normal View History

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