LinHES Forums
http://forum.linhes.org/

R5A15.1, shutdown, halt commands not working from shell $
http://forum.linhes.org/viewtopic.php?f=6&t=4687
Page 1 of 1

Author:  mwahal [ Wed May 25, 2005 12:36 pm ]
Post subject:  R5A15.1, shutdown, halt commands not working from shell $

Hi All,

I tried shutdown -h now and halt. Both commands are not working. I get some error in the end, something like -h flag invalid and then init [-lots of flags] message.

Just wondering if anyone else having similar issue. I'll post the exact message when I'm in front of the machine. I am testing nvram-wakeup, but since I cant shut it down, I cant boot it up from the BIOS RTC clock.

Thanks

Mudit

Author:  graysky [ Wed May 25, 2005 2:34 pm ]
Post subject: 

...you did try the "shutdown -h now" command as root right?

Author:  mwahal [ Wed May 25, 2005 2:37 pm ]
Post subject: 

graysky wrote:
...you did try the "shutdown -h now" command as root right?


yes, from root.

Author:  graysky [ Wed May 25, 2005 5:30 pm ]
Post subject: 

Can you post the output in the thread?

Author:  cesman [ Wed May 25, 2005 11:28 pm ]
Post subject: 

Aahhh
Code:
sudo halt

Author:  mwahal [ Thu May 26, 2005 1:10 am ]
Post subject: 

cesman wrote:
Aahhh
Code:
sudo halt


This is the error message I get at the end. Tried both "sudo halt (user mythtv)" and "halt (user root)"

unknown option -h
usage halt [-n] [-w] [-d] [-f] [-i] [-p]
init: no more process left in this run level

Author:  brendan [ Thu May 26, 2005 8:33 am ]
Post subject: 

Hmm. I wonder if you performed apt-gets to install suspend-resume related software and ended up replacing some of the standard commands like halt with other versions?

Or perhaps this might be related to noacpi or related lilo kernel options?

-brendan

Author:  mwahal [ Thu May 26, 2005 10:22 am ]
Post subject: 

brendan wrote:
Hmm. I wonder if you performed apt-gets to install suspend-resume related software and ended up replacing some of the standard commands like halt with other versions?

Or perhaps this might be related to noacpi or related lilo kernel options?

-brendan


I did some apt-gets to get nvram-wakeup stuff. Must have done several apt-gets to get latest dbus-1-dev. hald-dev, etc etc. May have got new initscripts and who knows what else.

Halt from the KM R5A15.1 CD does work, both cli and from the frontend. So, I must have overwritten it some where.

Thanks
Mudit

Author:  mwahal [ Thu May 26, 2005 4:50 pm ]
Post subject: 

This is my /etc/rc0.d/S90halt file header.

Code:
#! /bin/sh
#
# halt          Execute the halt command.
#
# Version:      @(#)halt  2.85-22  19-Jun-2004  miquels@cistron.nl
#

..
# Don't shut down drives if we're using RAID.
hddown="-h"
if grep -qs '^md.*active' /proc/mdstat
then
        hddown=""
fi

...


echo calling halt -d -f -i $poweroff $hddown
halt -d -f -i $poweroff $hddown


So thats how -h is being passed. Seems like when i upgraded the initscripts, S90halt got upgraded. But the halt command itself didnt change. I dont know which package it belongs to.
For time being I'll simply comment out the -h from there and try it out. That should fix the -h invalid option.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/