LinuxQuestions.org
Help answer threads with 0 replies.
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 10-29-2006, 03:03 PM   #1
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Rep: Reputation: 30
startup with server


where is the file located that has all the programs that startup with the ssytem, i need to add things like apache, mysql, postifx (everything on google is talking as if your using the gui interface, im connected via ssh)

this is on centos.


thanks

Last edited by MrSako; 10-29-2006 at 03:20 PM.
 
Old 10-29-2006, 05:02 PM   #2
puntjuh
Member
 
Registered: Apr 2006
Location: holland
Distribution: Gentoo / debian / suse / mint
Posts: 558

Rep: Reputation: 42
chkconfig should help you. This enables you to make certain services start on boot.
 
Old 10-29-2006, 07:25 PM   #3
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Or by example:
Code:
# chkconfig --list                # Available services and runlevels
# chkconfig --list  | grep 5:on   # All services to be started in runlevel 5
# chkconfig httpd on              # Start Apache in runlevels 2-5 on boot
See the chkconfig manpage for more options.
 
Old 10-30-2006, 03:04 PM   #4
ele0100443
LQ Newbie
 
Registered: Oct 2006
Location: Sokoto, Nigeria
Distribution: RedHat, Mandrake
Posts: 15

Rep: Reputation: 0
Thumbs up

For Apache at the root terminal type:
"chkconfig httpd on" then press enter.
For mysql type:
"chkconfig mysqld on" then press enter.
For postfix type:
"chkconfig postfix on" then press enter.
IF YOU WANT TO REVERT TYPE
"chkconfig httpd off" then press enter.
"chkconfig mysqld off" then press enter.
"chkconfig postfix off" then press enter.RESPECTIVELY

Last edited by ele0100443; 10-30-2006 at 03:05 PM.
 
  


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
Putting a delay in server startup ~=gr3p=~ Linux - Networking 1 06-19-2006 01:44 PM
X server... startup khaleel5000 Linux - Software 6 01-21-2006 07:38 AM
run perl server on startup shahidawan Linux - General 1 03-31-2005 10:53 PM
nfs-server startup irvken Linux - Networking 2 01-03-2004 01:00 PM
Apache server and MySQL server won't run at startup! dday007 Linux - General 2 02-07-2003 03:51 PM


All times are GMT -5. The time now is 11:03 AM.

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