1833704 Members
2252 Online
110062 Solutions
New Discussion

Start apache on boot

 
Eric Breverman
Occasional Contributor

Start apache on boot

Hi, I am trying to get apache to start on boot. Does anyone know how to do this in HP-UX. On my Linux machine I could just add the start command to rc.local, but that doesn't exist on HP-UX. Thanks for the help.
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: Start apache on boot

Hi Eric:

You simply need to configure a start and a kill (stop) script in '/sbin/init.d/'.

The standard start/stop paradigm is described in the very short white-paper below. Don't let the release of 10.x fool you. The model applies through all HP-UX releases today.

http://www.docs.hp.com/en/934/startup.pdf

A short summary of the paper actually appears in the manpages for 'rc(1M)'.

http://www.docs.hp.com/en/B2355-60127/rc.1M.html

Note that there is a template script that you should copy ('/sbin/init.d/template') to form the basis for your custom script.

Regards!

...JRF...
IT_2007
Honored Contributor

Re: Start apache on boot

you need to configure startup/shutdown script

/sbin/rc3.d/S900apache --> startup script.
/sbin/rc2.d/K100apache --> killing script.

Both are soft links pointing to /sbin/init.d/apache script which you have to create from /sbin/init.d/template.

/etc/rc.config.d/apache --> use variable value "0" or "1" to tell script "not to run" or "run" at boot.