Linux - GeneralThis forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
while doing soft rebooting of server using "init 6" or "reboot" or "shutdown -r now" failed to reboot the server.
The system hangs at - "Starting killall". Require hard reboot for the servers
Any help in resolving this issue will be great
If it hangs doing this, then how about changing through the init levels until you find which one is causing the issue:
Code:
init 4
init 3
init 2
init 1
init 0
EDIT:
When going to Run Level 0 the last two scripts to be called are:
S00killall
S01halt
The message "Starting killall" would be called at this point to shutdown any services that are still running. The fact that your machine is hanging at this point suggests that there are services that are still running that the script is unable to kill.
It may be worth adding a bit of logging to this script.
Last edited by Disillusionist; 05-03-2009 at 05:28 AM..
If it hangs doing this, then how about changing through the init levels until you find which one is causing the issue:
Code:
init 4
init 3
init 2
init 1
init 0
EDIT:
When going to Run Level 0 the last two scripts to be called are:
S00killall
S01halt
The message "Starting killall" would be called at this point to shutdown any services that are still running. The fact that your machine is hanging at this point suggests that there are services that are still running that the script is unable to kill.
It may be worth adding a bit of logging to this script.
yes Also i have this problem in shutdown -h now but in init1,2 is OK, Be informed that we have automatic startup script for start and stop application server and asdb automatically. I want the command that can find the related services that killall try to stop
yes Also i have this problem in shutdown -h now but in init1,2 is OK, Be informed that we have automatic startup script for start and stop application server and asdb automatically. I want the command that can find the related services that killall try to stop
The killall script (/etc/init.d/killall) is run when entering run level 0
I have edited the version on my system (modifications in red):
Code:
#! /bin/bash
# Bring down all unneeded services that are still running (there shouldn't
# be any, so this is just a sanity check)
echo "Starting /etc/init.d/killall" > /killall.log
case "$1" in
*start)
;;
*)
echo $"Usage: $0 {start}"
exit 1
;;
esac
for i in /var/lock/subsys/* ; do
echo "Found $i" >> /killall.log
# Check if the script is there.
[ -f "$i" ] || continue
# Get the subsystem name.
subsys=${i#/var/lock/subsys/}
# Networking could be needed for NFS root.
[ $subsys = network ] && continue
# Bring the subsystem down.
if [ -f /etc/init.d/$subsys.init ]; then
/etc/init.d/$subsys.init stop
elif [ -f /etc/init.d/$subsys ]; then
/etc/init.d/$subsys stop
else
rm -f "$i"
fi
done
echo "Finished /etc/init.d/killall script" >> /killall.log
This should create a log of what services the killall script is trying to kill, and hopefully provide a starting point for your investigation.
Last edited by Disillusionist; 05-03-2009 at 01:38 PM..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.