fstrim.service 466 B

123456789101112131415161718
  1. [Unit]
  2. Description=Discard unused blocks on filesystems from /etc/fstab
  3. Documentation=man:fstrim(8)
  4. ConditionVirtualization=!container
  5. [Service]
  6. Type=oneshot
  7. ExecStart=/sbin/fstrim --fstab --verbose --quiet
  8. ProtectSystem=strict
  9. ProtectHome=yes
  10. PrivateDevices=no
  11. PrivateNetwork=yes
  12. PrivateUsers=no
  13. ProtectKernelTunables=yes
  14. ProtectKernelModules=yes
  15. ProtectControlGroups=yes
  16. MemoryDenyWriteExecute=yes
  17. SystemCallFilter=@default @file-system @basic-io @system-service