21 lines
541 B
INI
21 lines
541 B
INI
[Unit]
|
|
Description=Online XFS Metadata Check for %I
|
|
OnFailure=xfs_scrub_fail@%i.service
|
|
Documentation=man:xfs_scrub(8)
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
PrivateNetwork=true
|
|
ProtectSystem=full
|
|
ProtectHome=read-only
|
|
# Disable private /tmp just in case %i is a path under /tmp.
|
|
PrivateTmp=no
|
|
AmbientCapabilities=CAP_SYS_ADMIN CAP_FOWNER CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_SYS_RAWIO
|
|
NoNewPrivileges=yes
|
|
User=nobody
|
|
IOSchedulingClass=idle
|
|
CPUSchedulingPolicy=idle
|
|
Environment=SERVICE_MODE=1
|
|
ExecStart=/usr/sbin/xfs_scrub -b -n %I
|
|
SyslogIdentifier=%N
|