- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Ascending or Descending sequence for shutdown
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
12-06-2000 09:06 AM
12-06-2000 09:06 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2000 09:15 AM
12-06-2000 09:15 AM
Re: Ascending or Descending sequence for shutdown
This is from man 1m rc;
A three digit number is used for sequencing scripts within the sequencer directory. Scripts are executed by type (start or kill) in alphabetical order as defined by the shell. Although it is not recommended, two scripts may share the same sequence number.
So the K900 will be executed before K901
Greetz, Danny.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2000 09:28 AM
12-06-2000 09:28 AM
Re: Ascending or Descending sequence for shutdown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2000 09:30 AM
12-06-2000 09:30 AM
Re: Ascending or Descending sequence for shutdown
For example if the subsystem/applications are started in this order
Subsystem1->Subsystem2->application1->application2
then they will be killed in the order
application2->application1->Subsystem2->Subsystem1.
...Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2000 09:38 AM
12-06-2000 09:38 AM
SolutionIf there is a start script that S100App1, S200App2, S300App3 then there are generally kill scripts like K700App3, K800App2, K900App1 so that App1 is started first, then App2, then App3. The Kill scripts get executed in numerical order just like the start scripts, but the scripts are generally defined to shut things down in the reverse order that they are started so App3 will shutdown first, then App2, then App1.
The general rule, for whatever reason, is that if you add the numeric portion of the S & K scripts together then they should equal 1000.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2000 10:23 AM
12-06-2000 10:23 AM
Re: Ascending or Descending sequence for shutdown
The scripts -- (S)tart or (K)--- are executed in lexicographical order, the entire file name of the link being used for the ordering. That's the beauty/simplicity of the mechanism. Thus, within rc
Take a look at /usr/share/doc/start_up.txt or at the Startup & Configuration White Paper:
http://docs.hp.com/hpux/onlinedocs/os/startup.pdf
...JRF...
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2000 10:48 AM
12-06-2000 10:48 AM
Re: Ascending or Descending sequence for shutdown
Enjoy !
Thanks,
Madhu