1833527 Members
2913 Online
110061 Solutions
New Discussion

Startup script

 
SOLVED
Go to solution
Marco A.
Esteemed Contributor

Startup script

Hello,

Just a quick one because I want some recommendations about this .
I want to add a startup script but the process to perform this is quite big a complex, is there a better way to add a startup script to this hp-ux box ? maybe a .profile line or something.

Best regards,

Marc'0
Just unplug and plug in again ....
2 REPLIES 2
Steven Schweda
Honored Contributor
Solution

Re: Startup script

> [...] is there a better way to add a
> startup script to this hp-ux box ?

Better than what?

> maybe a .profile line or something.

Roughly speaking, a start-up script in
/sbin/init.d (and/or its friends, rcN.d) is
run when the system starts up. Things in
a user's "~/.profile" are done when that user
logs in (or starts a shell in some other
way). Which one is better depends on what
you want done when (and/or by whom -- "root"
or some normal user).

man init
man profile
James R. Ferguson
Acclaimed Contributor

Re: Startup script

Hi Marco:

Simple or complex, startup scripts need to follow the paradigm described in this (still valid whitepatper):

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

...or in the manpages for 'rc(1M)':

http://www.docs.hp.com/en/B3921-60631/rc.1M.html

Use the '/sbin/init.d/template' file as the template to begin building *your* script.

Regards!

...JRF...