1
1
mirror of http://git.sesse.net/plocate synced 2025-10-05 23:42:49 +02:00

Remove ConditionACPower=true.

A lot of people use laptops like mobile phones, they use it mostly being on
battery and plug it over night, when the device is turned off, or when battery
level is really down. Then most likely the laptop is on battery when the
plocate update job is due. If you are on battery, systemd services with
ConditionACPower=true do silently nothing, the job is not started and there is
only a minor log notice about it which will go unnoticed most likely. As
plocate is really fast, remove ConditionACPower=true from
plocate-updatedb.service.in.
This commit is contained in:
Manfred Schwarb
2024-12-09 00:44:24 +01:00
committed by Steinar H. Gunderson
parent 9b705aac46
commit a3644e43d9

View File

@@ -1,6 +1,5 @@
[Unit]
Description=Update the plocate database
ConditionACPower=true
[Service]
Type=oneshot