* 2025-04-27 13:32:45-0400, Haines Brown wrote:

> I did a new installation of Debian and installed the locate pachage.
> But when I use it, nothing is retured:

> I know locate can be slow, but I waited a sufficient time. I suspect
> locate has to build a database, but my system has been running a week.

Some automatic services don't run when the computer is on laptop's
battery, instead of AC power. For example:

    # /lib/systemd/system/plocate-updatedb.service
    [Unit]
    Description=Update the plocate database
    ConditionACPower=true

That ConditionACPower=true line is on many service units. The associated
timer event triggers normally the service unit does nothing on laptop's
battery power.

I usually override those ConditionACPower=true conditions with an
override file like this:

    # /etc/systemd/system/plocate-updatedb.service.d/override.conf
    [Unit]
    ConditionACPower=

-- 
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462

Attachment: signature.asc
Description: PGP signature

Reply via email to