xfs_scrub@.service 561 B

123456789101112131415161718192021
  1. [Unit]
  2. Description=Online XFS Metadata Check for %I
  3. OnFailure=xfs_scrub_fail@%i.service
  4. Documentation=man:xfs_scrub(8)
  5. [Service]
  6. Type=oneshot
  7. WorkingDirectory=%I
  8. PrivateNetwork=true
  9. ProtectSystem=full
  10. ProtectHome=read-only
  11. # Disable private /tmp just in case %i is a path under /tmp.
  12. PrivateTmp=no
  13. AmbientCapabilities=CAP_SYS_ADMIN CAP_FOWNER CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_SYS_RAWIO
  14. NoNewPrivileges=yes
  15. User=nobody
  16. IOSchedulingClass=idle
  17. CPUSchedulingPolicy=idle
  18. Environment=SERVICE_MODE=1
  19. ExecStart=/usr/sbin/xfs_scrub -b -n %I
  20. SyslogIdentifier=%N