diff options
Diffstat (limited to 'etc/systemd/system/[email protected]')
-rw-r--r-- | etc/systemd/system/[email protected] | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/systemd/system/[email protected] b/etc/systemd/system/[email protected] index 8ffffeb0c..2bb2757d5 100644 --- a/etc/systemd/system/[email protected] +++ b/etc/systemd/system/[email protected] @@ -8,8 +8,8 @@ ConditionPathIsDirectory=/sys/module/zfs [Service] EnvironmentFile=-@initconfdir@/zfs -ExecStart=/bin/sh -c '\ -if @sbindir@/zpool status %i | grep -q "scrub in progress"; then\ -exec @sbindir@/zpool wait -t scrub %i;\ -else exec @sbindir@/zpool scrub -w %i; fi' -ExecStop=-/bin/sh -c '@sbindir@/zpool scrub -p %i 2>/dev/null || true' +ExecStart=sh -c '\ +if zpool status %i | grep -q "scrub in progress"; then\ +exec zpool wait -t scrub %i;\ +else exec zpool scrub -w %i; fi' +ExecStop=-sh -c 'zpool scrub -p %i 2>/dev/null || true' |