[arm-allstar] Found updatedb to be running daily

Danny K5CG k5cg at hamoperator.org
Mon Mar 22 10:28:27 EDT 2021


Or you could slow it down to once a week, for example...

systemctl edit updatedb.timer

add the following text...

[Timer]
OnCalendar=
OnCalendar=Weekly

Save the file (automatically created here: /etc/systemd/system/updatedb.timer.d/override.conf)

Restart the timer...

systemctl restart updatedb.timer

Check the schedule again...

systemctl list-timers

NEXT                         LEFT        LAST                         PASSED UNIT                         ACTIVATES
Mon 2021-03-29 00:00:00 CDT  6 days left Mon 2021-03-22 00:00:14 CDT  9h ago updatedb.timer               updatedb.service

Maybe weekly is often enough.

Danny
K5CG


----- Original Message -----
> From: "David McGough via ARM-allstar" <arm-allstar at hamvoip.org>
> To: "Robert Cloutier" <wo4rob at gmail.com>
> Cc: "David McGough" <kb4fxc at inttek.net>, "ARM Allstar" <arm-allstar at hamvoip.org>
> Sent: Monday, March 22, 2021 1:26:03 AM
> Subject: Re: [arm-allstar] Found updatedb to be running daily

> Hi,
> 
> To disable updatedb from running via systemd, from the bash prompt run:
> 
> 
> systemctl disable updatedb
> 
> 
> 73, David KB4FXC
> 
> 
> 
> On Sun, 21 Mar 2021, Robert Cloutier wrote:
> 
>> David,
>> 
>> The point that Larry made was that the HAMVoIP system automatically updates
>> the following file every day at midnight.
>> /var/lib/mlocate/mlocate.db
>> 
>> What is the best way to stop this from happening to prevent wearing out my
>> SD card?
>> 
>> WO4ROB
>> 
>> On Sat, Mar 20, 2021 at 14:06 "David McGough via ARM-allstar" <
>> arm-allstar at hamvoip.org> wrote:
>> 
>> >
>> > 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)
>> > >
>> > > 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
>> > > _______________________________________________
>> > >
>> > > 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
>> > >
>> >
>> > _______________________________________________
>> >
>> > 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
>> >
>> 
> 
> _______________________________________________
> 
> 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