]>
Commit | Line | Data |
---|---|---|
eb62fcca DW |
1 | # SPDX-License-Identifier: GPL-2.0-or-later |
2 | # | |
3 | # Copyright (C) 2018-2024 Oracle. All Rights Reserved. | |
4 | # Author: Darrick J. Wong <djwong@kernel.org> | |
5 | ||
824b5807 | 6 | [Unit] |
595874f2 | 7 | Description=Online XFS Metadata Check for %f |
824b5807 DW |
8 | OnFailure=xfs_scrub_fail@%i.service |
9 | Documentation=man:xfs_scrub(8) | |
10 | ||
11 | [Service] | |
12 | Type=oneshot | |
824b5807 DW |
13 | PrivateNetwork=true |
14 | ProtectSystem=full | |
15 | ProtectHome=read-only | |
595874f2 | 16 | # Disable private /tmp just in case %f is a path under /tmp. |
e4e022f9 | 17 | PrivateTmp=no |
824b5807 DW |
18 | AmbientCapabilities=CAP_SYS_ADMIN CAP_FOWNER CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_SYS_RAWIO |
19 | NoNewPrivileges=yes | |
20 | User=nobody | |
21 | IOSchedulingClass=idle | |
22 | CPUSchedulingPolicy=idle | |
23 | Environment=SERVICE_MODE=1 | |
595874f2 | 24 | ExecStart=@sbindir@/xfs_scrub @scrub_args@ %f |
824b5807 | 25 | SyslogIdentifier=%N |