The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/openzfs/etc/systemd/system/zfs-scrub@.service.in

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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
    8 
    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'

Cache object: ee32c604f6256d25faed8c19fbd0c89e


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.