sonic-buildimage/files/image_config/fstrim/fstrim.timer
Ying Xie ff9274d2a0 [202012][fstrim] delay fstrim timer after sonic.target (#8737)
Why I did it
fstrim has dependency on pmon docker.

How I did it
start fstrim timer after sonic.target.

How to verify it
local test and PR test.

Signed-off-by: Ying Xie ying.xie@microsoft.com
2021-09-14 09:58:41 -07:00

14 lines
209 B
SYSTEMD

[Unit]
Description=Discard unused blocks once a week
Documentation=man:fstrim
After=sonic.target
[Timer]
OnCalendar=weekly
OnBootSec=10min
AccuracySec=1h
Persistent=true
[Install]
WantedBy=multi-user.target