Solved

Shutdown problems...

Posted on 2004-04-30
2
317 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

777 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