You are not logged in.

#1 2014-08-16 08:45:27

jaro
Member
Registered: 2013-10-10
Posts: 25

turn off updatedb

Hi
How can I turn off launching updatedb (mlocate package). I would like the solution is to be immune for mlocate updates.
I tried the following but after rebooting the service is still active.

systemctl disable updatedb.timer

thanks for help

Offline

#2 2014-08-16 09:19:03

cju
Member
Registered: 2013-06-23
Posts: 194

Re: turn off updatedb

Just mask it.

Offline

#3 2014-08-16 16:55:39

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: turn off updatedb

If you are not going to update the db very often then might as well uninstall it, or better yet, configure it properly to index only what you really need.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2014-10-08 01:16:10

5ulo
Member
From: Slovakia
Registered: 2012-05-04
Posts: 100

Re: turn off updatedb

what about if I use locate once or twice in a week? My GS3 is launching extremly long because of updatedb.service & man-db.service. I'd like to update these databases manually before I use locate or man-db.
Thanks for any advice

Offline

#5 2014-10-08 01:25:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: turn off updatedb

I just have them run 15 and 30 mins after boot, that way the indexes are regularly updated, but there is no impact on my boot time.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2014-10-08 09:13:39

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: turn off updatedb

5ulo wrote:

My GS3 is launching extremly long because of updatedb.service & man-db.service

Do you mean you can't log in until the services finish running?
Because they run at the lowest priority possible:

Nice=19
IOSchedulingClass=best-effort
IOSchedulingPriority=7

So this should not slow the startup and not prevent doing other things during the execution of these services.
It's also possible to change the OnCalendar value of the timer: https://bbs.archlinux.org/viewtopic.php?id=180263

Offline

#7 2014-10-08 13:46:40

5ulo
Member
From: Slovakia
Registered: 2012-05-04
Posts: 100

Re: turn off updatedb

sorry berbae, my bad.. I was a bit confused by updatedb and man-db services because I tough that these services are the reason why my gnome-shell starts sooooo long after I click Login in GDM. I was wrong sad they are running before GDM starts. So I need to investigate what is slowing GS from start AFTER GDM.
Thanks anyway!

Offline

#8 2014-10-08 13:57:18

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: turn off updatedb

Test with a new user.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#9 2014-10-08 15:28:57

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: turn off updatedb

5ulo wrote:

I was a bit confused by updatedb and man-db services

It's not perfectly clear to me too how these timers/services operate exactly.

I need to investigate what is slowing GS from start AFTER GDM

Can you please post the output of 'journalctl -b' after a gnome session long startup time and the updatedb and man-db services running during boot.
(they run once a day, so you need to wait tomorrow before doing this or post the output from a previous boot where these conditions were met).

Last edited by berbae (2014-10-08 15:35:27)

Offline

#10 2014-10-08 17:29:32

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: turn off updatedb

Wow, I didn't even know "updatedb" had a service file for systemd! tongue

5ulo wrote:

what about if I use locate once or twice in a week?

I have an alias:

alias locate="sudo updatedb; locate"

On my modest six year old desktop computer with about 500GB worth of files on three Ext4 partitions, it takes anywhere between 0 and 10 seconds to complete. smile

Offline

#11 2014-10-08 23:33:17

5ulo
Member
From: Slovakia
Registered: 2012-05-04
Posts: 100

Re: turn off updatedb

berbae wrote:

Can you please post the output of 'journalctl -b' after a gnome session long startup time and the updatedb and man-db services running during boot.

It's in another topic which isn't about updatedb wink https://bbs.archlinux.org/viewtopic.php … 1#p1464091

@drcouzelis LOL, I used to use the same alias as you cool

Offline

Board footer

Powered by FluxBB