Fremont Servers
01-19-2002, 06:16 AM
What file(s) do I edit to stop updatedb and du from starting?
:cool:
:cool:
![]() | View Full Version : updatedb and du (run by root) Fremont Servers 01-19-2002, 06:16 AM What file(s) do I edit to stop updatedb and du from starting? :cool: Skeptical 01-19-2002, 09:49 AM Assuming you are running Redhat Linux... Take out the file: /etc/cron.daily/slocate.cron/slocate.cron To stop updatedb from running nightly at 4:00am. To remove "du" do a: rm /usr/bin/du Fremont Servers 01-19-2002, 04:06 PM Thank you, Skeptical priyadi 01-19-2002, 09:37 PM Um. Why would you want to remove du? It is one of the most useful tool in web hosting business... :) Fremont Servers 01-19-2002, 09:54 PM updatedb and du consume much of the CPU. Each can go up to 99% on two (2) 1000Mhz. Right now I am still hesitating to remove slocate.cron and du until I find out more information on slocate.cron and du through search engines. Do you know of any advantage/disadvantage of removing slocate.cron and du? Skeptical 01-19-2002, 10:08 PM Could you have meant "su"? Fremont Servers 01-19-2002, 10:11 PM I am pretty sure they are updatedb and du, because I have to remove them everyday. Dylan 01-20-2002, 12:55 AM There is definitely something else wrong with your server. Fremont Servers 01-20-2002, 01:43 AM Let me see if it comes from mrtg. RH 7.1, PSA v.1.3.1, and MRTG are the only three (3) installed to the server. priyadi 01-20-2002, 05:51 AM I can understand you want to stop slocate from running, however on typical server, it only runs for a few minutes every day. So, unless you have a huge server that running slocate would consume lots of time, I don't think it is necessary. And you will be unable to use locate if you disable slocate. However, why du? It doesn't get executed periodically, unlike slocate. There are a lot of other program in your Linux box that able to consume resources more than du, but they are pretty much harmless since they don't get executed automatically. |