- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- RC0 scripts.
Operating System - Tru64 Unix
1748035
Members
4724
Online
108757
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-07-2005 12:20 AM
тАО10-07-2005 12:20 AM
I have oracle shutdown script in rc0.d as K18oracle. If I run this script from command line "./K18oracle stop" oracle was cleanly shutdown. When I shutdown the machine with command "shutdown -r now" oracle processes was killed. Why ?
Thenks.
Thenks.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2005 12:36 AM
тАО10-07-2005 12:36 AM
Re: RC0 scripts.
I read once that using the shutdown command does not call the script, don't know why. Use the init 0 command to shutdown the system and the script will work.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2005 01:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2005 07:51 AM
тАО10-10-2005 07:51 AM
Re: RC0 scripts.
Socar,
The shutdown command does not run through the rc0 scripts as described in the man pages for shutdown under the description for the -h and -r flags. You should try to run the #init 0 command and see what happens there. This is the most likely answer. If not, check these items below:
-----------------------------------------
The inittab man page explains that the K* entries in the inittab refer to links in /sbin/rc0.d directory. If it is still being killed instead of stopped, there is likely an error in the link or you may need to reference the complete path (instead of a relative path as above).
One possible error, though you are likely aware of this, is the additional 'stop' parameter. If you run #cat /sbin/rc0 you will find that this script loops through all of the K* entries in rc0.d and runs them with a stop command. This script uses the command '/sbin/sh $f stop', where $f is any of the K* entries in rc0.d. Since there is already a stop parameter, your stop parameter is needed at the command line but not at the inittab entry.
Lastly, notice that the rc0 script runs the stop scripts (K*) under the Bourne shell (/sbin/sh). What is the shell you are under when running the script from the command line? Is it the same? Are you the root user? If you are running the command as your own user, you may have different path variables that are not included when you su- to root.
I hope some of this helped. Good luck.
Regards,
Kris
The shutdown command does not run through the rc0 scripts as described in the man pages for shutdown under the description for the -h and -r flags. You should try to run the #init 0 command and see what happens there. This is the most likely answer. If not, check these items below:
-----------------------------------------
The inittab man page explains that the K* entries in the inittab refer to links in /sbin/rc0.d directory. If it is still being killed instead of stopped, there is likely an error in the link or you may need to reference the complete path (instead of a relative path as above).
One possible error, though you are likely aware of this, is the additional 'stop' parameter. If you run #cat /sbin/rc0 you will find that this script loops through all of the K* entries in rc0.d and runs them with a stop command. This script uses the command '/sbin/sh $f stop', where $f is any of the K* entries in rc0.d. Since there is already a stop parameter, your stop parameter is needed at the command line but not at the inittab entry.
Lastly, notice that the rc0 script runs the stop scripts (K*) under the Bourne shell (/sbin/sh). What is the shell you are under when running the script from the command line? Is it the same? Are you the root user? If you are running the command as your own user, you may have different path variables that are not included when you su- to root.
I hope some of this helped. Good luck.
Regards,
Kris
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP