Solved

Shutdown problems...

Posted on 2004-04-30
2
316 Views
Last Modified: 2013-12-15
I have a system running RH AS 2.1 and I am having problems getting it to shut down cleanly due to an installed application that must be shutdown early.  

Our developers use ClearCase as their version control tool and if it's parent service (atria) doesn't get shutdown before other stuff it relies on (eg. amd, nfs, etc...) it causes a kernal panic during shutdown/reboot.  Normally, it's not an issue, we just run the install scripts and go on our merry way, but this system has forced me to re-install from scratch 3 times and I'm still stuck with the same problem.

I changed atria's kill number from the default of 35 to 2 in /etc/rc.d/rc6.d, but if I choose halt from the logon screen or do a shutdown/halt/reboot while logged in it appears to ignore the order of links in rc6.d .   Selecting reboot from from the logon screen works as expected and the system shuts down and reboots fine.

How do I affect the shutdown order for the other methods of shutting down the computer?  According to documentation, as I understand it,  shutdown/halt/reboot are supposed to be the same command and are supposed to switch the system to init level 6 which triggers the stopping of the various services by running the linked scripts.  Any thoughts or insights would be appreciated...
0
Comment
Question by:danm66
2 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 350 total points
ID: 10965014
If the system init scripts for ClearCase follow the standard for RedHat there'll be a line similar to:

# chkconfig: 2345 80 30

at the beginning of the script. This tell chkconfig what run levels the the service should be started in by default (i.e., chkconfig service on) and the precedence of the start/stop operations. When entering a run-level all K scripts are run and then all S scripts, in order of precedence.

Run levels 0, 1, & 6 are special. 6 is used only to prepare the system for and execute a reboot. Run level 1 is used to go to single user mode and 0 is used for halt. So, changing the precedence of the atria K script in run level 6 only affects a reboot. To change the precedence for a shtdown you'll need to change the precedence in 0 & 1
0
 
LVL 16

Author Comment

by:danm66
ID: 10991190
Ahhh!!!  The missing piece of the puzzle.  I knew what level 6 and, apparently, levels 2-5, but I didn't investigate 0 and 1.  Moving the atria kill links up in the 0 and 1 folders now allow it to shutdown without doing a kernal panic.  The curious part is why this system has this issue.  I'm sure that we've installed ClearCase on other systems running AS 2.1 without running into this issue.  Oh well, at least I can close this call and move on now.
Thanks for the help!!!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
linux apache localhost dev laptop 5 48
Anti-virus for Linux Server 15 123
linux ssh 4 57
Fixing Non-Standard characters in text 8 91
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now