- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP-UX Startup process question
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2008 04:10 PM
09-21-2008 04:10 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2008 04:26 PM
09-21-2008 04:26 PM
Re: HP-UX Startup process question
To check if you process has started, use your process' exit codes it has any, or check for the existence of a process name, or make a connection to it and test it out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2008 04:38 PM
09-21-2008 04:38 PM
Re: HP-UX Startup process question
> We would like to add a script to start a process during system bootup. Please anyone tell us what the best way to do this.
The best way is the correct way. See tha manpages for 'rc(1M)'.
For a more detailed discussion, see this (still valid) whitepaper:
http://www.docs.hp.com/en/934/startup.pdf
Use the file '/sbin/init.d/template' as the template (copy it) for your startup/shutdown script.
After you have properly coded your requirements, the 'etc/rc.log' will record the success or failure of your script's execution.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2008 01:55 AM
09-22-2008 01:55 AM
Re: HP-UX Startup process question
/sbin/rc3.d and /sbin/rc2.d
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2008 02:00 AM
09-22-2008 02:00 AM
Solutionand startscript/stopscript link should be in /sbin/rc2.d OR /sbin/rc3.d
root as root@suxde012 [/sbin/rc2.d]
# ll
total 0
lrwxr-xr-x 1 root sys 19 Jan 22 2007 K010OVCtrl -> /sbin/init.d/OVCtrl
lrwxr-xr-x 1 root sys 21 Jan 22 2007 K020OVTrcSrv -> /sbin/init.d/OVTrcSrv
lrwxr-xr-x 1 root sys 23 Jan 12 2004 K100dtlogin.rc -> /sbin/init.d/dtlogin.rc
lrwxr-xr-x 1 bin bin 18 Oct 14 2006 K172kwdbd -> /sbin/init.d/kwdbd
lrwxr-xr-x 1 bin bin 24 Jan 12 2004 K177hpws_apache -> /sbin/init.d/hpws_apache
lrwxr-xr-x 1 bin bin 24 Jan 12 2004 K177hpws_tomcat -> /sbin/init.d/hpws_tomcat
lrwxr-xr-x 1 bin bin 24 Jan 12 2004 K177hpws_webmin -> /sbin/init.d/hpws_webmin
lrwxr-xr-x 1 bin bin 26 Jan 12 2004 K177hpws_xmltools -> /sbin/init.d/hpws_xmltools
lrwxr-xr-x 1 root sys 19 Jan 12 2004 K200tps.rc -> /sbin/init.d/tps.rc
lrwxr-xr-x 1 root sys 21 Jan 12 2004 K890idsagent -> /sbin/init.d/idsagent
lrwxr-xr-x 1 root bin 23 Jan 12 2004 K900nfs.server -> /sbin/init.d/nfs.server
lrwxr-xr-x 1 root bin 21 Jan 12 2004 S008net.init -> /sbin/init.d/net.init
lrwxr-xr-x 1 bin bin 25 Jan 12 2004 S096vxvm-recover -> /sbin/init.d/vxvm-recover
lrwxr-xr-x 1 bin bin 21 Jan 12 2004 S120swconfig -> /sbin/init.d/swconfig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2008 12:54 PM
09-22-2008 12:54 PM
Re: HP-UX Startup process question
Thanks for a quick reply on this particular subject. I believe I have enough information to go on implementing our script. I will let you know if I need any more information. I've given points to each of you as a way to say thank you for your help.
Sincerely.