Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 01-20-2007, 09:10 PM   #1
LQ Newbie
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
Init.d services take a long time loading after fixing a corrupted hosts file

Hi all,
Ive been using fedora 6 for some time now (mainly for java development), and Ive come across a weird problem...
After my laptop ran out of battery while my fedora was running an http server Ive written (stupid stupid stupid), netbeans refused to load the debugger, a few hours later, I also found out that I can't ping localhost, this led me to believe the problem is related to my hosts file, which as Ive noticed, was indeed corrupt (didn't specify any references).
After manually inserting the localhost reference to hosts, the debugger works flawlessly, yet sendmail and cups server services take forever to load...
This never happened before, the box ran very well up until this change, and if I remove the line Ive added in hosts, the box starts well, but without reference to localhost.
Strangest thing is, that if I change the hosts file AFTER booting, everything runs well, including the debugger.
Im really stumped by this, and Ive googled all over for the answer, couldn't find any.
ALL help is appreciated!
Ishay Peled.
Old 01-21-2007, 04:12 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,043
Blog Entries: 14

Rep: Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212
You should make sure your real hostname and the localhost are in the hosts file before all other entries:

You could have either:
On the localhost line make sure you have aliases for your hostname (both fully qualified domain name [FQDN] and short name).

e.g. Say your host is ralph and your domain is ralph localhost.localdomain localhost

OR localhost.localdomain localhost ralph

All other uncommented entries should follow the above entries and NOT precede them.

Last edited by MensaWater; 01-29-2007 at 10:35 AM.
Old 01-29-2007, 08:20 AM   #3
LQ Newbie
Registered: Jan 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Yup... that was the problem, cheers


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu corrupted (users, services, HAL, ...) robbbert Ubuntu 4 07-14-2006 04:58 AM
K3B loading takes oddly long time. cerealdaemon Linux - Software 3 10-12-2005 02:20 AM
Corrupted my ReiserFS by fixing it...HELP! pAn1k Linux - Software 7 09-13-2004 01:40 AM
long listing using ls -l command display year or time of the file mnd_world Linux - Newbie 1 05-20-2004 12:39 PM
loading data from a flat file with a date and time having a different format spyghost Programming 2 11-02-2003 05:40 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration