LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-31-2008, 01:31 AM   #1
midnytblu
LQ Newbie
 
Registered: May 2006
Distribution: Solaris
Posts: 9

Rep: Reputation: 0
Shutdown Issue


hi,

we're having a problem on one of our RH 7.2 machines whenever we shut it down.

upon issuing the command "shutdown -h now", the actual process of shutting down begins but after the line "Power Down." appears, it won't automatically shut off. Instead, we have to manually push the power button to shut it down.

is there a way to fix it to power down without manual intervention?

thanks in advance!


/no1
 
Old 07-31-2008, 03:01 AM   #2
kenoshi
Member
 
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159

Rep: Reputation: 32
If:

poweroff

or

shutdown -h -P now

or (my favorite)

sync
sync
init 0

Doesn't poweroff your box, you need to check if the kernel has acpi support compiled in.

Sorry, my memory of 7.2 is sketchy at best, its been a looong time, hope this helps.
 
Old 07-31-2008, 09:03 PM   #3
midnytblu
LQ Newbie
 
Registered: May 2006
Distribution: Solaris
Posts: 9

Original Poster
Rep: Reputation: 0
hi kenoshi,

thanks for replying but can you teach me how to do that or link me to how can i do it?
again, much thanks.
 
Old 07-31-2008, 10:27 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

'man shutdown';

Code:
excerpt from 'man shutdown';

NAME
       shutdown - bring the system down

SYNOPSIS
       /sbin/shutdown [-t sec] [-arkhncfFHP] time [warning-message]

DESCRIPTION
       shutdown  brings  the system down in a secure way.  All logged-in users
       are notified that the system is going down, and  login(1)  is  blocked.
       It is possible to shut the system down immediately or after a specified
       delay.  All processes are first notified that the system is going  down
       by the signal SIGTERM.  This gives programs like vi(1) the time to save
       the file being edited, mail and news processing programs  a  chance  to
       exit  cleanly,  etc.   shutdown  does  its  job  by signalling the init
       process, asking it to change the runlevel.  Runlevel 0 is used to  halt
       the  system, runlevel 6 is used to reboot the system, and runlevel 1 is
       used to put to system into a state where administrative  tasks  can  be
       performed; this is the default if neither the -h or -r flag is given to
       shutdown.  To see which actions are taken on halt  or  reboot  see  the
       appropriate entries for these runlevels in the file /etc/inittab.

OPTIONS
       -a     Use /etc/shutdown.allow.

       -t sec Tell  init(8)  to wait sec seconds between sending processes the
              warning and the kill signal, before  changing  to  another  run-
              level.

       -k     Don't  really shutdown; only send the warning messages to every-
              body.

       -r     Reboot after shutdown.

       -h     Halt or poweroff after shutdown.

       -H     Halt action is to halt or drop into boot monitor on systems that
              support it.

       -P     Halt action is to turn off the power.

       -n     [DEPRECATED]  Don't  call  init(8)  to do the shutdown but do it
              ourself.  The use of this option is discouraged, and its results
              are not always what you'd expect.
-f     Skip fsck on reboot.

       -F     Force fsck on reboot.

       -c     Cancel  an  already  running shutdown. With this option it is of
              course not possible to give the time argument, but you can enter
              a  explanatory  message on the command line that will be sent to
              all users.

       time   When to shutdown.

       warning-message
              Message to send to all users.

       The time argument can have different formats.   First,  it  can  be  an
       absolute time in the format hh:mm, in which hh is the hour (1 or 2 dig-
       its) and mm is the minute of the hour (in two digits).  Second, it  can
       be  in the format +m, in which m is the number of minutes to wait.  The
       word now is an alias for +0.

...
Easy enough to figure the proper shutdown command.
 
Old 07-31-2008, 11:33 PM   #5
midnytblu
LQ Newbie
 
Registered: May 2006
Distribution: Solaris
Posts: 9

Original Poster
Rep: Reputation: 0
hi onebuck,

sorry, what i meant was how to:
Quote:
Originally Posted by kenoshi View Post
...check if the kernel has acpi support compiled in...
we use 'shutdown -h now' to power down the system but it won't power off automatically... it stops at the 'Power Down.' message.

thanks.
 
Old 07-31-2008, 11:45 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Code:
~# cat /usr/src/linux/.config |grep -i acpi
How I would check my current 'linux' kernel.

Or do a 'dmesg |grep -i acpi' to see the present setup

BTW, what happens when you do a 'shutdown -r now'?
 
Old 08-01-2008, 12:42 AM   #7
midnytblu
LQ Newbie
 
Registered: May 2006
Distribution: Solaris
Posts: 9

Original Poster
Rep: Reputation: 0
hi onebuck,

big thanks for that! unfortunately, i can't perform what you requested because the system has just been transferred to another location. i won't be able to do it 'til monday next week.

i'll get back at you once i saw the result. again, much thanks!
 
Old 08-01-2008, 01:09 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

The reasoning behind the issue of the 'shutdown -r now' is too see if the kernel is handling the shutdown. The reboot (-r) should issue the message and init a boot. If it doesn't then we know that the power management is not functioning or setup properly.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shutdown issue using centos 5.0 alex.archip Linux - Laptop and Netbook 4 09-09-2007 01:01 AM
suse shutdown issue robkovacs Linux - Hardware 1 04-22-2005 11:09 AM
Nvidia Shutdown Issue Gustavo C Linux - Software 4 12-04-2004 07:41 AM
Baffling reboot/shutdown issue... tisource Linux - General 12 03-31-2003 03:08 PM
Shutdown issue under X FlodderMouse Linux - General 7 12-20-2001 10:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration