add xfs_fsr service run before fstrim service

This commit is contained in:
Daniel Micay 2023-08-03 13:45:11 -04:00
parent 124897ccba
commit b67d037a5e
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,7 @@
[Unit]
Wants=xfs_fsr.service
After=xfs_fsr.service
[Service]
CPUSchedulingPolicy=idle
IOSchedulingClass=idle

View File

@ -0,0 +1,12 @@
[Unit]
Description=XFS filesystem reorganization
[Service]
CPUSchedulingPolicy=idle
ExecStart=/usr/bin/xfs_fsr -f /var/lib/.fsrlast
IOSchedulingClass=idle
IPAddressDeny=any
MemoryDenyWriteExecute=true
PrivateIPC=true
PrivateNetwork=true
Type=oneshot