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
0 Comments.