xref: /aosp_15_r20/external/e2fsprogs/scrub/e2scrub_reap.service.in (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker[Unit]
2*6a54128fSAndroid Build Coastguard WorkerDescription=Remove Stale Online ext4 Metadata Check Snapshots
3*6a54128fSAndroid Build Coastguard WorkerConditionCapability=CAP_SYS_ADMIN
4*6a54128fSAndroid Build Coastguard WorkerConditionCapability=CAP_SYS_RAWIO
5*6a54128fSAndroid Build Coastguard WorkerDocumentation=man:e2scrub_all(8)
6*6a54128fSAndroid Build Coastguard Worker
7*6a54128fSAndroid Build Coastguard Worker[Service]
8*6a54128fSAndroid Build Coastguard WorkerType=oneshot
9*6a54128fSAndroid Build Coastguard WorkerWorkingDirectory=/
10*6a54128fSAndroid Build Coastguard WorkerPrivateNetwork=true
11*6a54128fSAndroid Build Coastguard WorkerProtectSystem=true
12*6a54128fSAndroid Build Coastguard WorkerProtectHome=read-only
13*6a54128fSAndroid Build Coastguard WorkerPrivateTmp=yes
14*6a54128fSAndroid Build Coastguard WorkerAmbientCapabilities=CAP_SYS_ADMIN CAP_SYS_RAWIO
15*6a54128fSAndroid Build Coastguard WorkerNoNewPrivileges=yes
16*6a54128fSAndroid Build Coastguard WorkerUser=root
17*6a54128fSAndroid Build Coastguard WorkerIOSchedulingClass=idle
18*6a54128fSAndroid Build Coastguard WorkerCPUSchedulingPolicy=idle
19*6a54128fSAndroid Build Coastguard WorkerEnvironment=SERVICE_MODE=1
20*6a54128fSAndroid Build Coastguard WorkerExecStart=@root_sbindir@/e2scrub_all -A -r
21*6a54128fSAndroid Build Coastguard WorkerSyslogIdentifier=%N
22*6a54128fSAndroid Build Coastguard WorkerRemainAfterExit=no
23*6a54128fSAndroid Build Coastguard Worker
24*6a54128fSAndroid Build Coastguard Worker[Install]
25*6a54128fSAndroid Build Coastguard WorkerWantedBy=multi-user.target
26