mirror of
http://git.sesse.net/plocate
synced 2025-10-06 03:42:49 +02:00
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.
28 lines
594 B
SYSTEMD
28 lines
594 B
SYSTEMD
[Unit]
|
|
Description=Update the plocate database
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=@sbindir@/@updatedb_progname@
|
|
LimitNOFILE=131072
|
|
IOSchedulingClass=idle
|
|
Nice=19
|
|
|
|
CapabilityBoundingSet=CAP_DAC_READ_SEARCH CAP_CHOWN
|
|
IPAddressDeny=any
|
|
LockPersonality=true
|
|
MemoryDenyWriteExecute=true
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
PrivateNetwork=true
|
|
ProtectClock=true
|
|
ProtectControlGroups=true
|
|
ProtectHostname=true
|
|
RestrictAddressFamilies=AF_UNIX
|
|
RestrictNamespaces=true
|
|
RestrictRealtime=true
|
|
RestrictSUIDSGID=true
|
|
SystemCallArchitectures=native
|
|
SystemCallFilter=@system-service @chown
|