LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /etc/init.d/httpd restart (https://www.linuxquestions.org/questions/linux-newbie-8/etc-init-d-httpd-restart-838819/)

anon091 10-18-2010 09:12 AM

/etc/init.d/httpd restart
 
Every time i restart a server i have to run that line to get the website running on there to work. Is there something i can do so it'll start automatically and i dont have to do that every time?

Sayan Acharjee 10-18-2010 09:16 AM

Quote:

Originally Posted by rjo98 (Post 4131307)
Every time i restart a server i have to run that line to get the website running on there to work. Is there something i can do so it'll start automatically and i dont have to do that every time?

Use the following command:

Quote:

#chkconfig httpd on
or

Quote:

#/sbin/chkconfig httpd on
It will start the service when the runlevel starts itself.

anon091 10-18-2010 09:21 AM

cool, thanks

Sayan Acharjee 10-18-2010 09:23 AM

Most welcome :)
Don't forget to mark the thread as solved if the problem is resolved.


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