?
Solved

how to shutdown linux server

Posted on 2010-04-08
5
Medium Priority
?
1,024 Views
Last Modified: 2013-12-06
Hello

How can I shutdown a linux server ?

When i use init 0 command, it shuts down but gives a message on console "now you can power off the button"

However I want system to completely turn off ...including chasis. Since I am remotely shutting down, I do not want anyone to be there to push power button off
0
Comment
Question by:utls
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:LazloH
ID: 30140320
shutdown -h should work.  What distro and version are you running?
0
 

Author Comment

by:utls
ID: 30141238
I am using redhat AS 5
0
 
LVL 3

Expert Comment

by:LazloH
ID: 30142930
Init 0 is defined as the HALT run level.  Not a reboot command.  Try the shutdown -h and let me know.
0
 
LVL 3

Accepted Solution

by:
crzyivan0000 earned 500 total points
ID: 30154956
shutdown now -P
0
 

Author Comment

by:utls
ID: 30203864
Right.

Shutdown -h didnt work so I used shutdown now -P ...it worked

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…

588 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