Disabling sendmail from starting during bootup

Problem: The sendmail daemon takes long to start while CentOS is booting. How do I disable it from starting during bootup?

Solution:

Use the chkconfig command.

To remove sendmail from chkconfig management:

chkconfig --del sendmail

To add sendmail to chkconfig management:

chkconfig --add sendmail

To list sendmail configuration for each runlevel:

chkconfig --list sendmail

To manage sendmail at a particular runlevel:

chkconfig --level <levels> sendmail

where <levels> are the runlevels from 0-6

To manually stop the sendmail service:

/etc/init.d/sendmail stop

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


This site uses Akismet to reduce spam. Learn how your comment data is processed.