LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   startup with server (https://www.linuxquestions.org/questions/linux-newbie-8/startup-with-server-496670/)

MrSako 10-29-2006 02:03 PM

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

puntjuh 10-29-2006 04:02 PM

chkconfig should help you. This enables you to make certain services start on boot.

WhatsHisName 10-29-2006 06:25 PM

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.

ele0100443 10-30-2006 02:04 PM

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


All times are GMT -5. The time now is 07:18 AM.