Move fstrim to autostart so it doesn't block sleep.
This commit is contained in:
parent
714d917665
commit
0584e41b00
3 changed files with 2 additions and 3 deletions
2
packages/jelos/sources/autostart/daemons/005-fstrim
Normal file
2
packages/jelos/sources/autostart/daemons/005-fstrim
Normal file
|
@ -0,0 +1,2 @@
|
|||
SVC="fstrim.timer"
|
||||
DAEMONS=("fstrim")
|
|
@ -92,5 +92,4 @@ post_install () {
|
|||
if [ "${SWAP_SUPPORT}" = "yes" ]; then
|
||||
enable_service swap.service
|
||||
fi
|
||||
enable_service fstrim.timer
|
||||
}
|
||||
|
|
|
@ -3,7 +3,5 @@ Description=Discard unused blocks on all filesystems
|
|||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
# don't run immediately on boot when timer event was missed
|
||||
ExecStartPre=-/usr/bin/sleep 20
|
||||
ExecStart=-/usr/sbin/fstrim --all --verbose --quiet-unsupported
|
||||
ExecStart=-/usr/bin/touch /storage/.cache/fstrim.run
|
||||
|
|
Loading…
Reference in a new issue