Only update plocate db on power to prevent hangs after sleep

This commit is contained in:
David Heinemeier Hansson
2026-03-08 11:09:57 +01:00
parent fd03d57110
commit 3aff0017a1
3 changed files with 7 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
sudo install -d /etc/systemd/system/plocate-updatedb.service.d
printf '%s\n' '[Unit]' 'ConditionACPower=true' | sudo tee /etc/systemd/system/plocate-updatedb.service.d/ac-only.conf >/dev/null
sudo systemctl daemon-reload