set zfs_arc_shrinker_limit to 0 by default
[zfs.git] / etc / systemd / system / zfs-scrub@.service.in
blob8ffffeb0cf6c9564d31e54cdea592f86dceac2d3
1 [Unit]
2 Description=zpool scrub on %i
3 Documentation=man:zpool-scrub(8)
4 Requires=zfs.target
5 After=zfs.target
6 ConditionACPower=true
7 ConditionPathIsDirectory=/sys/module/zfs
9 [Service]
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'