- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Shutdown script link naming ?
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
10-16-2002 03:21 PM
10-16-2002 03:21 PM
STARTUP/SHUTDOWN SCRIPT #1:
SCRIPT NAME: APP1
START LINK: /sbin/init.d/app1 /sbin/rc3.d/S900app1
STOP LINK:
/sbin/init.d/app1 /sbin/rc3.d/K100app1
SCRIPT NAME: APP2
START LINK: /sbin/init.d/app2 /sbin/rc3.d/S900app2
STOP LINK:
/sbin/init.d/app1 /sbin/rc3.d/K100app2
please notice that my question pretains to the sequence number being identical. Will this be a problem. Thanks in advanced (hopefully this makes sense)
Regards,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 03:33 PM
10-16-2002 03:33 PM
SolutionAs long as they differ, they're OK. Scripts are ran alphabatically. IF you need one to start AFTER another they would have to be alphabetically arranged that way. BUT you can always change the digits somewhat.
Like S900app1 & K100app1 THEN S920app2 & K080app2 - app2 will start after & stop before app1
It's good that you're respecting the rule of 1000. And that's to insure proper start/stop order.
AND REMEMBER that if you start it in run-level 3 (/sbin/rc3.d) you should stop it it run-level 2 (/sbin/rc2.d) on the way down. Always stop one level lower than start.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 06:32 AM
10-17-2002 06:32 AM
Re: Shutdown script link naming ?
To answer your question: yes, you can use the same prefix for multiple links. S900app1 will run before S900app2. As Jeff says, the scripts are run in alphabetical order. If you need app2 to run before app1, then obviously you will have to change the name of the links.
It is easier to determine the order if you use different numbers, however it is not a requirement.
Let me also echo what Jeff says about the placement of the start and stop scripts. The stop script needs to be in a run level that is less than the start script. Generally, that will be one run level less.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 06:39 AM
10-17-2002 06:39 AM
Re: Shutdown script link naming ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 08:02 AM
10-17-2002 08:02 AM
Re: Shutdown script link naming ?
Regards,