Operating System - HP-UX
1832212 Members
2448 Online
110041 Solutions
New Discussion

where i can set autostart command after reboot in HP-UX

 
Julianto
Frequent Advisor

where i can set autostart command after reboot in HP-UX

hi all, i'am new in hp-ux.
i wanna ask bout how to configure autostart in hp-ux. if in linux i configure in /etc/rc.d/rc.local but in hp-ux where i can configure??
i try searching manual for that, but i can't find them... help please...
9 REPLIES 9
Ivan Krastev
Honored Contributor

Re: where i can set autostart command after reboot in HP-UX

All services have their cinfiguration files in /etc/rc.config.d/

regards,
ivan
Julianto
Frequent Advisor

Re: where i can set autostart command after reboot in HP-UX

yeah, but this application doesn't have service in /etc/rc.config.d
this is jbase application and i configure in /usr/jbc/bin. if i want use this application i must do this :
#cd /usr/jbc/bin
#./jLicServer start
#./jSlimServer start

if i reboot the system, i must do that again. i'am sick doing all this manualy..
i think in linux i can write the script to /etc/rc.d/rc.local (no matter i restart the system, it will start)
but in hp-ux i can't find that...

thx for the reply
Yogeeraj_1
Honored Contributor

Re: where i can set autostart command after reboot in HP-UX

hi,

have a look at the attachment.

Though old, the concepts are the same.

hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Julianto
Frequent Advisor

Re: where i can set autostart command after reboot in HP-UX

>hi,

>have a look at the attachment.

>Though old, the concepts are the same.

>hope this helps!

>kind regards
>yogeeraj

what attachment you mean?
Yogeeraj_1
Honored Contributor

Re: where i can set autostart command after reboot in HP-UX

hi,

have a look at the url below:
http://docs.hp.com/en/934/startup.pdf

hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Yogeeraj_1
Honored Contributor

Re: where i can set autostart command after reboot in HP-UX

hi again,

sorry for the duplicate posts.

The URL contains the same information as the file that i was trying to attach.

if you need any further assistance, please let us know.

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Bill Hassell
Honored Contributor

Re: where i can set autostart command after reboot in HP-UX

Your startup script must be stored in /sbin/init.d and a configuration script for your start/stop script is stored in /etc/rc.config.d (different from Linux). Then to put your application in the right sequence of startup and shutdown steps, you create a symlink in the /sbin/rc* directories. These symlinks are executed in alphabetical order so the S### and K### names will ensure that scripts are run at the right time. The above is a summary of the previously mentioned URL. Be sure you model your application script using the file /sbin/init.d/template.


Bill Hassell, sysadmin
boje
Regular Advisor

Re: where i can set autostart command after reboot in HP-UX

Do you have to do this to run a command at startup? Is is possible to just put the startup script in /sbin/init.d/ ??

Br
Patrik
Victor Fridyev
Honored Contributor

Re: where i can set autostart command after reboot in HP-UX

Hi,

Look at the script /sbin/init.d/nfs.client
It has the standard structure. Pay attention that on boot all scripts run twice - wth start_message and start parameters, and on shutdown as well, but with stop.
It's worth to have a configuration file, in the /etc/rc.config.d directory and to load it in your script. In this case you may manage your script without changing it.
HTH
Entities are not to be multiplied beyond necessity - RTFM