Reboot/Shutdown messages


 
Thread Tools Search this Thread
Operating Systems Linux Reboot/Shutdown messages
# 1  
Old 02-03-2011
Reboot/Shutdown messages

Hi,
I'm using 2.6.11 kernel on ARM 9. Below are the messages I get issuing different commands.

When I give "reboot" I get run level 6 initiated and get the following messages. I have nothing to complaint about it. All the scripts in rc6.d are executed.

The system is going down for reboot NOW!
INIT: Switching to runlevel: 6
INIT: Sending processes the TERM signal
Terminated
INIT: Sending processes the KILL signal
Unmounting all file systems...
umount: rwfs busy - remounted read-only
umount: rwfs busy - remounted read-only
Rebooting...


When I give "shutdown -now -h", I get following messages. Run level 0 is initiated and all the scripts in rc0.d are executed. No problems here as well.

The system is going down for system halt NOW!
INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal
Terminated
INIT: Sending processes the KILL signal
Sending all processes the TERM signal...done.
Unmounting all file systems...
umount: rwfs busy - remounted read-only
umount: rwfs busy - remounted read-only


This gets interesting when I pull the auxiliary power line to the board. I would like to know which run level it does initiate. If there are no run levels attached to it, how do i do that? Below are the messages when I get my auxiliary power line pulled out.

The system is going down for reboot NOW!
shutdown: sending all processes the TERM signal...
shutdown: sending all processes the KILL signal.
shutdown: turning off swap
shutdown: unmounting all file systems
umount: /dev: Device or resource busy
Please stand by while rebooting the s
# 2  
Old 02-03-2011
Post your /etc/inittab, it might explain more. They might have tied emergency shutdown to an auxiliary level like 'init b' or some such.
# 3  
Old 02-03-2011
Hi,
Thanks for your hint. I looked into my inittab file. And I found that if power fail happens we're calling "shutdown -n now". It's indeed emergency shutdown not going thro' any levels.

My question here is, why there's a message when the power fail happens which is "umount: /dev: Device or resource busy"? Which script executes "shutdown: unmounting all file systems" message or is this message from Kernel itself?
# 4  
Old 02-04-2011
Post your /etc/inittab, it might explain more.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

No init messages display during startup/shutdown

This question is more in the line of how init messages get sent to a console during startup/shutdown. My problem has to do with exporting a VM from AWS to KVM (and a retry on virtual box). I am looking for a understanding on how init messages are sent to a device and what controls them My two... (0 Replies)
Discussion started by: jtkells
0 Replies

2. Red Hat

Server shutdown- /var/log/messages copied over here

Hi, Please share your thought what could make the server shutdown: Dec 1 10:20:05 powellton syslog-ng: syslog-ng version 1.6.8 starting Dec 1 10:20:06 powellton kdump: Loaded kdump kernel: /sbin/kexec -p /boot/vmlinux-2.6.16.60-0.34-kdump --append="CRASH=1 root=/dev/rootvg/rootlv... (1 Reply)
Discussion started by: admin_db
1 Replies

3. Shell Programming and Scripting

Exit script when shutdown or reboot command is given

This is probably a simple question, but I'm new with writing scripts for Linux (IPFire in this case) and Google wasn't helpful with this. When creating a script, what is the best and/or proper way to have it exit automatically if the reboot or shutdown command is given? If that's even... (2 Replies)
Discussion started by: bartgrefte
2 Replies

4. UNIX for Dummies Questions & Answers

Script to force Oracle database shutdown when shutdown immediate does not work

I have Oracle 9i R2 on AIX 5.2. My Database is running in shared server mode (MTS). Sometimes when I shutdown the database it shutsdown cleanly in 4-5 mints and sometimes it takes good 15-20 minutes and then I get some ora-600 errors and only way to shutdown is by opening another session and... (7 Replies)
Discussion started by: aixhp
7 Replies

5. UNIX for Dummies Questions & Answers

dmesg equivalent of shutdown messages

dmesg is used to print bootup messages. How can i get/read the shutdown log messages? (1 Reply)
Discussion started by: proactiveaditya
1 Replies

6. UNIX for Advanced & Expert Users

shutdown and reboot unix server

Hi, please could someone advise the best command to shutdown and then for it to reboot back online again. Note: I shall be doing this from a telent session. regards venhart (3 Replies)
Discussion started by: venhart
3 Replies

7. SuSE

How to record shutdown/startup messages

The wtmp file records all logins and logouts. Its format is exactly like utmp except that a null user name indicates a logout on the associated terminal. Furthermore, the terminal name "~" with user name "shutdown" or "reboot" indicates a system shutdown or reboot and the pair of terminal names... (1 Reply)
Discussion started by: Laksmi
1 Replies

8. Shell Programming and Scripting

How to control/overide shutdown/reboot process?

Dear all, I want to control my server from shutting down and rebooting. It will ask for some question before the process, ex: who are you? what is the reason for shutting down? ... I think I can overide that binary of shutdown/reboot command, but it is confused. We have many way to... (5 Replies)
Discussion started by: fongthai
5 Replies

9. UNIX for Dummies Questions & Answers

Shutdown and Reboot problem

Hi, i have sco openserver 5.0.6 but have a problem with shutdown or reboot commands. The string I use is "shutdown -g0 -y" but the system just hangs on "The sytem is down" . I used to get a "Safe to turn of" but now nothing. Same with "reboot" the sytem just freezes. Any suggestions? (1 Reply)
Discussion started by: VTechman
1 Replies

10. Solaris

different between soft reboot and hard reboot

Hi Guru's Can any want here could explain to me the different between soft reboot and hard reboot . Best Regards Seelan (3 Replies)
Discussion started by: seelan3
3 Replies
Login or Register to Ask a Question