]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - scrub/xfs_scrub@.service.in
xfsprogs: Release v6.7.0
[thirdparty/xfsprogs-dev.git] / scrub / xfs_scrub@.service.in
CommitLineData
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 7Description=Online XFS Metadata Check for %f
824b5807
DW
8OnFailure=xfs_scrub_fail@%i.service
9Documentation=man:xfs_scrub(8)
10
11[Service]
12Type=oneshot
824b5807
DW
13PrivateNetwork=true
14ProtectSystem=full
15ProtectHome=read-only
595874f2 16# Disable private /tmp just in case %f is a path under /tmp.
e4e022f9 17PrivateTmp=no
824b5807
DW
18AmbientCapabilities=CAP_SYS_ADMIN CAP_FOWNER CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_SYS_RAWIO
19NoNewPrivileges=yes
20User=nobody
21IOSchedulingClass=idle
22CPUSchedulingPolicy=idle
23Environment=SERVICE_MODE=1
595874f2 24ExecStart=@sbindir@/xfs_scrub @scrub_args@ %f
824b5807 25SyslogIdentifier=%N