Difference between revisions of "Late booting of machine due to sendmail/sm-client services"

From Notes_Wiki
(Created page with "=Late booting of machine due to sendmail / sm-client services= Sometime Linux machines may take long time to boot due to sendmail / sm-client services which take lot of time ...")
 
m
Line 1: Line 1:
<yambe:breadcrumb>System troubleshooting</yambe:breadcrumb>
=Late booting of machine due to sendmail / sm-client services=
=Late booting of machine due to sendmail / sm-client services=


Sometime Linux machines may take long time to boot due to sendmail / sm-client services which take lot of time to start during machine boot. This may happen because sendmail and sm-client are not able to resolve hostname to IP addresses. Hence we should check file '<tt>/etc/hosts</tt>' and verify that it contains mapping from both '<tt>127.0.0.1</tt>' and '<tt>::1</tt>' to hostname.  
Sometime Linux machines may take long time to boot due to sendmail / sm-client services which take lot of time to start during machine boot. This may happen because sendmail and sm-client are not able to resolve hostname to IP addresses. Hence we should check file '<tt>/etc/hosts</tt>' and verify that it contains mapping from both '<tt>127.0.0.1</tt>' and '<tt>::1</tt>' to hostname.  '''Also this mapping should be in first non-commented line of /etc/hosts file.  Doing this mapping on second or third line wont help'''.


This means that we should be careful when we change hostname by using '<tt>hostname</tt>' command or by modifying '<tt>/etc/sysconfig/network</tt>' file. We should also correspondingly modify '<tt>/etc/hosts</tt>' whenever we change system name.
This means that we should be careful when we change hostname by using '<tt>hostname</tt>' command or by modifying '<tt>/etc/sysconfig/network</tt>' file. We should also correspondingly modify '<tt>/etc/hosts</tt>' whenever we change system name.


We should also let aliases localhost and localhost.localdomain remain in /etc/hosts file. If we remove their entries then too some system programs may stop working properly.
We should also let aliases localhost and localhost.localdomain remain in /etc/hosts file. If we remove their entries then too some system programs may stop working properly.

Revision as of 06:24, 21 February 2015

<yambe:breadcrumb>System troubleshooting</yambe:breadcrumb>

Late booting of machine due to sendmail / sm-client services

Sometime Linux machines may take long time to boot due to sendmail / sm-client services which take lot of time to start during machine boot. This may happen because sendmail and sm-client are not able to resolve hostname to IP addresses. Hence we should check file '/etc/hosts' and verify that it contains mapping from both '127.0.0.1' and '::1' to hostname. Also this mapping should be in first non-commented line of /etc/hosts file. Doing this mapping on second or third line wont help.

This means that we should be careful when we change hostname by using 'hostname' command or by modifying '/etc/sysconfig/network' file. We should also correspondingly modify '/etc/hosts' whenever we change system name.

We should also let aliases localhost and localhost.localdomain remain in /etc/hosts file. If we remove their entries then too some system programs may stop working properly.