[arm-allstar] Found updatedb to be running daily
David McGough
kb4fxc at inttek.net
Sat Mar 20 17:06:39 EDT 2021
Hi Larry,
Typically if I can't find something in the filesystem, I just manually run
the updatedb command from a bash shell prompt, which only takes a few
seconds to complete.
Since the database (mlocate.db) is static, it continues to work until the
next time I've moved things around and need to update again.
73, David KB4FXC
On Sat, 20 Mar 2021, "Larry Mollica via ARM-allstar" wrote:
> 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)
>
> Im 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 its not like there are a lot of file changes going
> on so Im fine with using it when needed.
>
> Larry
> WA6FSJ
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
>
More information about the ARM-allstar
mailing list