blob: 496f894834a6e92941a46c7f5b35f8a68c07abed [file] [log] [blame]
Darrick J. Wonga2df5892018-03-23 18:57:22 -07001[Unit]
2Description=Online ext4 Metadata Check for %I
3OnFailure=e2scrub_fail@%i.service
4Documentation=man:e2scrub(8)
5
6[Service]
7Type=oneshot
8WorkingDirectory=/
9PrivateNetwork=true
10ProtectSystem=true
11ProtectHome=read-only
12PrivateTmp=yes
13AmbientCapabilities=CAP_SYS_ADMIN CAP_SYS_RAWIO
14NoNewPrivileges=yes
15User=root
16IOSchedulingClass=idle
17CPUSchedulingPolicy=idle
18Environment=SERVICE_MODE=1
19ExecStart=@root_sbindir@/e2scrub -t %I
20SyslogIdentifier=%N