Operating System - HP-UX
1833883 Members
1899 Online
110063 Solutions
New Discussion

Startup Script for server express

 
SOLVED
Go to solution
pgorn
Frequent Advisor

Startup Script for server express

I need some on how to get started on a startup script. I need the program Server_Express to startup with the server boots. I know it has to me in /etc/rc3.d but is there a template to follow.
Thanks
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: Startup Script for server express

Hi:

You can easily setup a startup script in the '/sbin/init.d' directory. A template is available as '/sbin/init.d/template'. See the manpages for 'rc(1M)' and/or the whitepaper below for a complete understanding of how to achieve this:

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

Although the whitepaper includes "10.x" in its title is is applicable for all release since then.

Regards!

...JRF...
Bill Hassell
Honored Contributor

Re: Startup Script for server express

The template is your startiong point. Store your final script in /sbin/init.d like the rest of the start/stop script.

> /etc/rc3.d

No, the path is /sbin/rc3.d and the directory is full of symlinks, not scripts. The purpose of the symlinks is to sort the order in which the various startup scripts execute. You pick a number starting with S (like S901) and add the name of your script (a reasonable convention). So you can call your script: /sbin/init.d/server_express and the symlink might be something like S901server_express.


Bill Hassell, sysadmin
pgorn
Frequent Advisor

Re: Startup Script for server express

Thanks, I am going to work on it today if I get a chance.
Thanks