LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-17-2005, 01:29 PM   #1
mellomutt
LQ Newbie
 
Registered: Dec 2005
Posts: 4

Rep: Reputation: 0
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?

Last edited by mellomutt; 12-17-2005 at 01:54 PM.
 
Old 12-17-2005, 02:03 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
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
 
Old 12-17-2005, 02:03 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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.
 
Old 12-17-2005, 02:15 PM   #4
mellomutt
LQ Newbie
 
Registered: Dec 2005
Posts: 4

Original Poster
Rep: Reputation: 0
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
qmail /service/qmail-send: unable to open supervise mangueJOE Linux - Networking 20 04-20-2016 12:27 AM
How to get service to start at boot zaichik Linux - Newbie 12 08-27-2008 10:15 PM
BOINC as a service to start at boot purelithium Linux - General 14 11-18-2005 10:04 PM
Network service start at boot? King of Japan Linux - Networking 2 09-01-2005 11:23 AM
how to start a service at boot senthilkumar Slackware 2 07-19-2004 08:33 AM


All times are GMT -5. The time now is 08:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration