mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-12-24 09:18:19 +08:00
a2df58945c
Add the ability to run the e2scrub utilities as a periodically scheduled system service. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
21 lines
447 B
SYSTEMD
21 lines
447 B
SYSTEMD
[Unit]
|
|
Description=Online ext4 Metadata Check for %I
|
|
OnFailure=e2scrub_fail@%i.service
|
|
Documentation=man:e2scrub(8)
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
WorkingDirectory=/
|
|
PrivateNetwork=true
|
|
ProtectSystem=true
|
|
ProtectHome=read-only
|
|
PrivateTmp=yes
|
|
AmbientCapabilities=CAP_SYS_ADMIN CAP_SYS_RAWIO
|
|
NoNewPrivileges=yes
|
|
User=root
|
|
IOSchedulingClass=idle
|
|
CPUSchedulingPolicy=idle
|
|
Environment=SERVICE_MODE=1
|
|
ExecStart=@root_sbindir@/e2scrub -t %I
|
|
SyslogIdentifier=%N
|