e2scrub_reap.service 550 B

12345678910111213141516171819202122232425
  1. [Unit]
  2. Description=Remove Stale Online ext4 Metadata Check Snapshots
  3. ConditionCapability=CAP_SYS_ADMIN
  4. ConditionCapability=CAP_SYS_RAWIO
  5. Documentation=man:e2scrub_all(8)
  6. [Service]
  7. Type=oneshot
  8. WorkingDirectory=/
  9. PrivateNetwork=true
  10. ProtectSystem=true
  11. ProtectHome=read-only
  12. PrivateTmp=yes
  13. AmbientCapabilities=CAP_SYS_ADMIN CAP_SYS_RAWIO
  14. NoNewPrivileges=yes
  15. User=root
  16. IOSchedulingClass=idle
  17. CPUSchedulingPolicy=idle
  18. Environment=SERVICE_MODE=1
  19. ExecStart=/sbin/e2scrub_all -A -r
  20. SyslogIdentifier=%N
  21. RemainAfterExit=no
  22. [Install]
  23. WantedBy=default.target