1829347 Members
5023 Online
109991 Solutions
New Discussion

Re: redhat 6.1 problems

 
SOLVED
Go to solution
Kevin Wright
Honored Contributor

redhat 6.1 problems

As I was starting my linux box, all was well until sendmail tried to start..the system hung. i rebooted into single mode, and tried to start sendmail from the comand line..it worked. I took sendmail out of the startup scripts and rebooted. I normally boot into runlevel 5, X, however, X never started. i logged in the terminal and tried to start X, system hung. about every 2 minutes or so, X tried to start itself for 3 or 4 seconds then it would drop back to the terminal..any ideas as to what the hell is going on?
8 REPLIES 8
Kofi ARTHIABAH
Honored Contributor
Solution

Re: redhat 6.1 problems

Kevin:

It sounds like you might have a dns problem. Try removing the /etc/resolv.conf and setting up your /etc/nsswitch.conf to read:

hosts: files [NOTFOUND=continue] dns

also in your /etc/hosts file make sure that your server is identified by both the short and fully qualified domain name.

Good luck
nothing wrong with me that a few lines of code cannot fix!
Albert E. Whale, CISSP
Honored Contributor

Re: redhat 6.1 problems

I would have to agree. Your problems appear to be IP Addressing or DNS resolution.

Has the IP Address changed recently? Does DNS Run when you enter level 3?

Check the file /var/log/messages, this will give you great insight into what is happening.

Please let us know what you find out.

Also, have you considered upgrading?
Sr. Systems Consultant @ ABS Computer Technology, Inc. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com

Re: redhat 6.1 problems

Hi,

Remember that you have to use a fully qualified domain name, like

foo.redhad.com

Your hostname will be then:

mybox.foo.redhat.com.


With kind regards,
Dieter Degrendele
Dieter@Work
Kevin Wright
Honored Contributor

Re: redhat 6.1 problems

As it turns out, it was the DNS.but why? I have a dns server running and rememebered I experimented with changing the nsswitch.conf file to read dns first for somereason. Why does sendmail not start on bootup.In the bootup sequence, I have named starting before sendmail, actually sendmail is one of the last processes to start. Then I can start sendmail from the command line /etc/rc.d/init.d/mail start with dns first in nsswitch.conf..why not on bootup?? Can somebody explain this to me?
Jerome Fenal_1
Valued Contributor

Re: redhat 6.1 problems

If you have your DNS first, just check it resolves localhost, when it is available.
It is a good practice to leave files+dns anyway.

Regards,

Jerome
Bienvenue chez moi
Albert E. Whale, CISSP
Honored Contributor

Re: redhat 6.1 problems

Kevin,

I'll be glad to resolve the issue for you.

What is your Domain Name (wo that I can verify that it's correct), and what error is Sendmail reporting? You can try a restart with the command /etc/rc.d/init.d/sendmail start

All it will cost you is a few forum points. Thanks for the previous points!

Have a Happy Halloween!
Sr. Systems Consultant @ ABS Computer Technology, Inc. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com
Kevin Wright
Honored Contributor

Re: redhat 6.1 problems

Sendmail does not report any error, and as I said, doing /etc/rc.d/init.d/mail start works fine. but sendmail does not start on bootup with nsswitch.conf:
hosts dns files

anybody know why??
Kevin Wright
Honored Contributor

Re: redhat 6.1 problems

Sendmail does not report any error, and as I said, doing /etc/rc.d/init.d/mail start works fine. but sendmail does not start on bootup with nsswitch.conf:
hosts dns files

anybody know why??