LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Start Qmail Service on Boot (https://www.linuxquestions.org/questions/linux-newbie-8/start-qmail-service-on-boot-393896/)

mellomutt 12-17-2005 01:29 PM

Start Qmail Service on Boot
 
I'm on winxp, and i ssh in to our web server (running Red Hat 9) using putty. if i append etc/rc.d/rc.local with this line:

service qmail start

will that make qmail start up automatically on boot?

Brian1 12-17-2005 02:03 PM

Yes that will work or you can enable qmail in the netwroking runlevels using the command.
chkconfig --level 345 qmail on

This enbles qmail in runlevels 3,4,and 5. You verify by looking /etc/rc3.d and see one called S** qmail same in rc4.d and rc5.d.

Hope this helps
Brian1

btmiller 12-17-2005 02:03 PM

Yes, but if qmail already has a start script in /etc/rc.d/init.d (and it must because all service does is call /etc/rc.d/init.d/qmail) then you can just do "chkconfig qmail on" and that will work. See man chkconfig for more details.

mellomutt 12-17-2005 02:15 PM

thank you for responding. occasionally traffic will crash the server and we reboot via the control panel offered by our host. we then have to log into plesk and manually start the SMTP service (qmail). wanted to automate the startup of that service.

will that chkconfig command (chkconfig qmail on) set it so that qmail will start every time the server boots, or is that only for manual starting?


All times are GMT -5. The time now is 01:20 AM.