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
09-25-2001 06:11 PM
09-25-2001 06:11 PM
TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2001 06:37 PM
09-25-2001 06:37 PM
SolutionYou are correct. The rule is that the kill script goes in one run-level below that of the start script. e.g If your start script is
/sbin/rc3.d/S910oracle then your kill script should be /sbin/rc2.d/K090oracle. The other convention (though not a requirement) is that the 3 digits of both scripts should add to 1000. This almost always brings them up and down in the intended order. I have also implemented Oracle to start in rc4.d and stop in rc3.d assuming the default run-level is 4.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2001 06:38 PM
09-25-2001 06:38 PM
Re: rc3.d
In order to meet dependency requirements, services are generally killed in the reverse order from which they are started.
For example, assume there are four services, W, X, Y, and Z. The S/K script names for these
services would likely be:
/sbin/rc3.d: /sbin/rc2.d:
------------ ------------
S200W K800W
S300X K700X
S400Y K600Y
S500Z K500Z
Regarding NFS, the startup scripts are in:
NFS core /sbin/rc2.d
NFS client /sbin/rc2.d
NFS server /sbin/rc3.d
Shawn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2001 06:43 PM
09-25-2001 06:43 PM
Re: rc3.d
See the link below:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x6c02a24d9abcd4118fef0090279cd0f9,00.html
Regards
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2001 06:51 PM
09-25-2001 06:51 PM
Re: rc3.d
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xdfb779bffde7d4118fef0090279cd0f9,00.html
A must read before you start
http://docs.hp.com/hpux/onlinedocs/os/startup.html
Thanks
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2001 06:52 PM
09-25-2001 06:52 PM
Re: rc3.d
One other point, if both the start and kill scripts trigger at the same run-level and that level is the default run-level as set by the initdefault entry in /etc/inittab, the kill script will not even be triggered. That is why you always kill at run-level - 1.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2001 09:07 PM
09-25-2001 09:07 PM
Re: rc3.d
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 03:54 AM
09-26-2001 03:54 AM
Re: rc3.d
'Kill' scripts should execute at one run-level lower than their 'start' counterpart, for the reason that Clay clearly states in his second post.
In addition the "1000-rule", when followed, means not only that processes will be killed in in the *reverse* order that they were started, but that processes will *not* be killed until a potentially dependent process is first killed.
Consider processes A, B and C started at run-level-3 as S100A, S400B and S900C. Assume further that S400B is dependent upon some service provided by S100A. The proper kill scripts would be at run-level-2 and respectively be K100C, K600B and K900A. Thus, "B" would be gracefully terminated before "A"'s service is killed.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 05:07 AM
09-26-2001 05:07 AM
Re: rc3.d
Aside from being a good convention, the kill script MUST be in a lower level from the start script or it will not be executed (see /sbin/rc). It is only executed when changing run-level to it's level or a lower level. For example, changing from run-level 3 to 1 executes Kill scripts in rc2.d and rc1.d.
Darrell