View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 9 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed May 25, 2005 12:36 pm 
Offline
Joined: Sun May 15, 2005 8:47 am
Posts: 54
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 25, 2005 2:34 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
...you did try the "shutdown -h now" command as root right?

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 25, 2005 2:37 pm 
Offline
Joined: Sun May 15, 2005 8:47 am
Posts: 54
graysky wrote:
...you did try the "shutdown -h now" command as root right?


yes, from root.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 25, 2005 5:30 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Can you post the output in the thread?

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 25, 2005 11:28 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Aahhh
Code:
sudo halt

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 1:10 am 
Offline
Joined: Sun May 15, 2005 8:47 am
Posts: 54
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 8:33 am 
Offline
Joined: Tue Dec 07, 2004 12:04 pm
Posts: 369
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 10:22 am 
Offline
Joined: Sun May 15, 2005 8:47 am
Posts: 54
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 4:50 pm 
Offline
Joined: Sun May 15, 2005 8:47 am
Posts: 54
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.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu