[arm-allstar] Found updatedb to be running daily
Larry Mollica
qjf5cqutzp at liamekaens.com
Sat Mar 20 13:34:19 EDT 2021
Hi all
FYI
The hamvoip.org page says that the “locate …daily update is turned off. This is to avoid unnecessary writes to the SD card.”, but I found that updatedb has been running every day:
# ls -l /var/lib/mlocate/mlocate.db
-rw-r----- 1 root locate 1615159 Mar 18 00:00 /var/lib/mlocate/mlocate.db
(Version is RPi2-3-4 Version 1.6-16)
I’m not too familiar with systemctl but I found the timer files and renamed them,
/usr/lib/systemd/system/updatedb.timer.DISABLE
/usr/lib/systemd/system/multi-user.target.wants/updatedb.timer.DISABLE
...then did a systemctl daemon-reload. It has ceased the daily updates. (Again, not too familiar with systemctl so there may be a more preferred method to do this. Feel free to educate me. :)
Alternately I suppose the db file could be moved to /tmp/ or some RAM based directory, but it’s not like there are a lot of file changes going on so I’m fine with using it when needed.
Larry
WA6FSJ
More information about the ARM-allstar
mailing list