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

From Notes_Wiki
m
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb>System troubleshooting</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System troubleshooting]] > [[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.  '''Also this mapping should be in first non-commented line of /etc/hosts file.  Doing this mapping on second or third line wont help'''.
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'''.
Line 7: Line 6:


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.
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System troubleshooting]] > [[Late booting of machine due to sendmail/sm-client services]]

Latest revision as of 11:37, 28 July 2022

Home > CentOS > CentOS 6.x > System troubleshooting > 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.



Home > CentOS > CentOS 6.x > System troubleshooting > Late booting of machine due to sendmail/sm-client services