]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - scrub/xfs_scrub@.service.in
Merge tag 'scrub-fix-legalese-6.6_2024-01-11' of https://git.kernel.org/pub/scm/linux...
[thirdparty/xfsprogs-dev.git] / scrub / xfs_scrub@.service.in
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
6 [Unit]
7 Description=Online XFS Metadata Check for %I
8 OnFailure=xfs_scrub_fail@%i.service
9 Documentation=man:xfs_scrub(8)
10
11 [Service]
12 Type=oneshot
13 PrivateNetwork=true
14 ProtectSystem=full
15 ProtectHome=read-only
16 # Disable private /tmp just in case %i is a path under /tmp.
17 PrivateTmp=no
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
24 ExecStart=@sbindir@/xfs_scrub @scrub_args@ %I
25 SyslogIdentifier=%N