- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Automatically run script at boot up
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
тАО04-01-2005 12:36 AM
тАО04-01-2005 12:36 AM
I am running HP-UX 11i on an RP5470.
I have a script which starts up my Oracle database. Is there a way to tell HPUX to run this script every time the system boots up?
Do I need to place the script somewhere or make a change in a config file (in rc.config.d)?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2005 12:41 AM
тАО04-01-2005 12:41 AM
Solutionyou have to copy you startup script to /sbin/init.d/ directory
and make software links:
(in this example my script name is dbora)
To start:
ln -s /sbin/init.d/dbora /sbin/rc2.d/S999dbora
To stop:
ln -s /sbin/init.d/dbora /sbin/rc1.d/K108dbora
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2005 12:42 AM
тАО04-01-2005 12:42 AM
Re: Automatically run script at boot up
Then appropriate start and kill scripts in /sbin/rcx.d/
You can refer /sbin/init.d/template script to start with.
Also if you search the forums, you may get one readymade.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2005 12:43 AM
тАО04-01-2005 12:43 AM
Re: Automatically run script at boot up
of course script have to have start/stop/ sections look at my script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2005 12:54 AM
тАО04-01-2005 12:54 AM
Re: Automatically run script at boot up
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2005 01:06 AM
тАО04-01-2005 01:06 AM
Re: Automatically run script at boot up
Apart from all this you can use /sbin/init.d/template file having copied to the required name.Also your links starting with S and K in /sbin/rc?.d has to have a unique no. Also this no. should be towards the end for S as startup of oracle depends on many services those should be started before these, and had to be in the starting itself for K as it should be shutdown before other services on which it depends.
Exact no. you can choose having a look at nos. in these directories of your system.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2005 01:08 AM
тАО04-01-2005 01:08 AM
Re: Automatically run script at boot up
http://docs.hp.com/en/5990-8172/ch05s03.html
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2005 02:20 AM
тАО04-01-2005 02:20 AM