- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script execution order
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
Forums
Discussions
Discussions
Discussions
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
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
07-15-2007 10:51 PM
07-15-2007 10:51 PM
script execution order
I have a software whose installation does not require a reboot. but the softwatre with which it is being installed with the same swinstall session.
The configure script for the scripts is being called after the reboot.
In the configure(SD) script I am creating links in rc2.d which points to a script in /sbin/init.d which is supposed to start a daemon for the application.
Now the problem is:
When the system is rebooted by the swinstall session, the configure scripts is called after the reboot by SD, hence the links are created in rc2.d but the daemon is not starting.
The OS is not even calling the script which is pointed by the links.
Any ideas :
Why is it happining ? why the OS is not executing the rc script even if I am creating the links before the rc initialization starts?
or is it a case that the rc initialisation and the configuration are both running simultaneously and the rc executor makes some kind of list of files before executing the scripts and the newly added links are not taken into account?
Thanks
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2007 10:58 PM
07-15-2007 10:58 PM
Re: script execution order
What happens if you try to run the program manually?
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2007 11:10 PM
07-15-2007 11:10 PM
Re: script execution order
We have a valid start_msg in our script,,,and that too is not printed in rc.log
this means that the initialization is not callin this script with start_msg argument.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2007 11:22 PM
07-15-2007 11:22 PM
Re: script execution order
Is there any such file which is set to not run the script at startup ?
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2007 11:33 PM
07-15-2007 11:33 PM
Re: script execution order
The interesting thing is that when I take a second reboot ..every thing works fine :)..because the links are already present there .
It seems to me that the rc system first makes a list of all the scripts for a particular runlevel and then executes them.
so, somehow the rc system makes that list before swconfig is run ( my configure script is executed ), hence the newly created links are not present in the list as they are not created yet and hence ignored when the first reboot occurs.
At the time of second reboot, the list will include the links and everhing will work fine
Please let me know your comments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2007 11:38 PM
07-15-2007 11:38 PM
Re: script execution order
comments please..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2007 01:25 AM
07-16-2007 01:25 AM
Re: script execution order
The solution is to move the link creation code to postinstall script as the list of scripts to be executed for this runlevel is created before the links are created in configure.
Thanks
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2007 05:19 AM
07-16-2007 05:19 AM
Re: script execution order
That would be one solution. But violates the spirit of postinstall/configure. I.e. your solution wouldn't work on the old diskless workstations.
You may just have your configure script start up your rc script.