LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Sendmail Fails and Server got Hanged during Startup (https://www.linuxquestions.org/questions/linux-newbie-8/sendmail-fails-and-server-got-hanged-during-startup-820471/)

raskin_ece 07-18-2010 01:31 AM

Sendmail Fails and Server got Hanged during Startup
 
Hi All,

I am facing a problem that sendmail gets failed during startup and the server could not get forward after that server gets hanged.I tried for several times and finally i have to resetup the os.A few days back i also faced same problem with Squid gets failed after rebooting the server and the server cant get to login screens.How to get rid of this problem?Anyone please help.

Raskin

repo 07-18-2010 01:38 AM

Hi,

Welcome to LQ
Could you please give us the error messages you receive?
Which distribution are you using?

raskin_ece 07-19-2010 12:17 AM

I am using Red Hat Enterprise Linux 5 and As it is happening during startup service checking and We can go further to login screen.So i couldn't able to see the error message.That moment i have to restart the server and Each time it stop responding after Sendmail service fail.What is the solution???can anyone tell??

raskin_ece 07-19-2010 12:18 AM

In a word server goes hanged after sendmail checking during startup.

Hidden Windshield 07-19-2010 01:04 PM

Some versions of sendmail take a long time to start up.

What happens if you just wait 10 minutes or so?

raskin_ece 07-19-2010 11:56 PM

It remains hanged after 10 or more minutes so each time i restart the server from that position it gets hanged on the same position....

repo 07-20-2010 12:11 AM

You could disable sendmail at boot.
Then start sendmail, and see for error messages.

zjoske 07-20-2010 03:03 AM

If you are not able to boot you should disable sendmail in single user mode

boot into single user mode (at the grub splash screen, type "a" then " single")

at the prompt in single user mode type "chkconfig --level 5 sendmail off". This will disable starting sendmail at boot.

go into normal mode with "init 5"

once booted:
1) check /var/log/boot.log
2) check /var/log/dmesg
3) check /var/log/lastlog
also check the older versions.

enable sendmail (should be done as root: "chkconfig --level 5 sendmail on")
start sendmail (should be done as root: "service restart sendmail")

check your logfiles again


All times are GMT -5. The time now is 12:07 AM.