2 Description=zpool scrub on %i
3 Documentation=man:zpool-scrub(8)
7 ConditionPathIsDirectory=/sys/module/zfs
10 EnvironmentFile=-@initconfdir@/zfs
11 ExecStart=/bin/sh -c '\
12 if @sbindir@/zpool status %i | grep -q "scrub in progress"; then\
13 exec @sbindir@/zpool wait -t scrub %i;\
14 else exec @sbindir@/zpool scrub -w %i; fi'
15 ExecStop=-/bin/sh -c '@sbindir@/zpool scrub -p %i 2>/dev/null || true'