Help - Search - Members - Calendar
Full Version: Help With Init.d
Linuxhelp > Support > Technical Support
cyris
Hello, I was woundering if anyone could write a walk through on how to start apache2 @ boot up.

Do I just move the startup script into init.d?

How about if I dont have a startup script?

Thanks!
Robert83
Hi,

what distro are use using ?

/etc/init.d/httpd start ---> Start Apache
/etc/init.d/httpd stop ----> Stop Apache
/etc/init.d/httpd restart -----> Restart Apache
/etc/init.d/httpd status ---> status of Apache


Sincerely
Robert B
Robert83
Hi

type this into a terminal
CODE

chkconfig --list | grep httpd

if the result is like this
httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

type this into a terminal
CODE
chkconfig httpd on


then type again
CODE

chkconfig --list | grep httpd

and if the result is this
httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

then httpd will start up every time you reboot your system


Sincerely
Robert B
cyris
sorry forgot to post what distro. Redhat 6.2

lets say that its a new daemon i just installed. Would I toss the startup script into init.d?

0:off 1:off 2:on 3:on 4:on 5:on 6:off

Im going to take a guess at this, these are run levels correct? what is the default run level? 3?
cyris
I was able to get ssh runing at startup. I had to grab a startup script and do some soft linking but all works! thanks.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.