Cainiao asked for help. Centos5.6 cannot be shut down.

Source: Internet
Author: User
Cainiao asked for help. Centos5.6 cannot be shut down. -- Linux general technology-Linux technology and application information. For details, refer to the following section. I have just started to learn linux, and I do not know how to mistakenly operate it, causing the system to fail to shut down normally.
My version is centos release 5.6 (Final)
Kernel 2.6.18-238. el5xen on an i686
The following are some faults.

After logging on to the system
-Bash-3.2 #
Switch to normal status after running csh

Running halt/poweroff/init 0 fails. The following figure shows:
The system is going down for system halt NOW!
INIT: Sending processes the TERM signal
INIT: no more processes left in this runlevel
It won't stop.
The keyboard is usable, but the input content is only displayed on the screen.
Run/sbin/shutdown now and the final display is as follows:
Telling INIT to go to single user mode.
INIT: Going single user
INIT: Sending grocesses the TERM signal
INIT: no more processes left in this runlevel
Sh-3.2 #
After running csh in this status, the system automatically logs on as root.
If you run exit
The system restarts and returns to the logon screen.
Run reboot after logon. The system can be restarted normally.

I found a lot of methods on the Internet, but I cannot see the inittab file.
The content of my inittab file is as follows:
#
# Inittab This file describes how the INIT process shocould set up
# The system in a certain run-level.
#
# Author: Miquel van Smoorenburg,
# Modified for RHS Linux by Marc Ewing and Donnie Barnes
#

# Default runlevel. The runlevels used by RHS are:
#0-halt (Do NOT set initdefault to this)
#1-Single user mode
#2-Multiuser, without NFS (The same as 3, if you do not have networking)
#3-Full multiuser mode
#4-unused
#5-X11
#6-reboot (Do NOT set initdefault to this)
#
Id: 3: initdefault:

# System initialization.
Si: sysinit:/etc/rc. d/rc. sysinit

L0: 0: wait:/etc/rc. d/rc 0
L1: 1: wait:/etc/rc. d/rc 1
L2: 2: wait:/etc/rc. d/rc 2
L3: 3: wait:/etc/rc. d/rc 3
L4: 4: wait:/etc/rc. d/rc 4
L5: 5: wait:/etc/rc. d/rc 5
L6: 6: wait:/etc/rc. d/rc 6

# Trap CTRL-ALT-DELETE
Ca: ctrlaltdel:/sbin/shutdown-t3-r now

# When our UPS tells us power has failed, assume we have a few minutes
# Of power left. Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
Pf: powerfail:/sbin/shutdown-f-h + 2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
Pr: 12345: powerokwait:/sbin/shutdown-c "Power Restored; Shutdown Cancelled"


# Run gettys in standard runlevels
1: 2345: respawn:/sbin/mingetty tty1
2: 2345: respawn:/sbin/mingetty tty2
3: 2345: respawn:/sbin/mingetty tty3
4: 2345: respawn:/sbin/mingetty tty4
5: 2345: respawn:/sbin/mingetty tty5
6: 2345: respawn:/sbin/mingetty tty6

# Run xdm in runlevel 5
X: 5: respawn:/etc/X11/preofdm-nodaemon

Please help me to see what the problem is.
Thank you again.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.