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

nvram-wakeup: backend never shuts down: SOLVED!
http://forums.linhes.org/viewtopic.php?f=17&t=6573
Page 1 of 1

Author:  andrewsw [ Sun Oct 23, 2005 4:17 pm ]
Post subject:  nvram-wakeup: backend never shuts down: SOLVED!

Greetings,

I've got my system running flawlessly for a few weeks now and love it. It's also fully passed the WAF (Wife Acceptance Factor) which is good as it was her birthday gift. so..

Of course I have to fsck with it now and then. I've installed and tested nvram-wakeup per the KnoppmythWiki instructions. Seems to work fine as I can set the wake-up time from the command line and it reboots/halts and then comes back up as it should. My problem is that the backend never shuts down. I've got it set to wait for client connection before checking for idle, and idle time set to 10 seconds.... restart back and front end futz around for a bit and then exit front end. It never shuts down.


I'm guessing that either myth backend is not functioning properly in this regard, or is never getting idle. any thoughts?

EDIT: I've confirmed from the backend logs that it is getting idle, but never seems to call the script. I put in a test script to echo some output to a file just to see if it even calls it -- nothing. The startup script is called just fine, but the shutdown and set-startup-time scripts never seem to get called.

EDIT/ SOLVED: I have a history of answering my own questions ;). So the problem is that I had no pre-shutdown command entered. so when the system went idle, it tried to call a pre-shutdown command, but none existed so there was no "0" return to tell it okay to shutdown. I solved this temporarily by putting "exit 0" in as the preshutdown command. I'm looking into a script like can be found here. as a long term solution.

Andrew

Author:  alien [ Mon Oct 24, 2005 11:38 am ]
Post subject:  Re: nvram-wakeup: backend never shuts down: SOLVED!

andrewsw wrote:
EDIT/ SOLVED: I have a history of answering my own questions ;). So the problem is that I had no pre-shutdown command entered. so when the system went idle, it tried to call a pre-shutdown command, but none existed so there was no "0" return to tell it okay to shutdown. I solved this temporarily by putting "exit 0" in as the preshutdown command. I'm looking into a script like can be found here. as a long term solution.

Glad it's working!

Hmmmm... I forgot about that "exit 0". I've updated the wiki.

As for the other reference you gave, if you never have to reboot to get the BIOS wakeup time to take hold, it may be a better solution as it uses the commands more in the way that they were intended. My box sometimes needs a reboot and so I had to do the re-boot from the set wakup time script. This is because result of setting the time determines whether a reboot or a simple halt is needed. I might have put the information in a file, but I was afraid that would create even more race conditions.

Cheers,

Allen

Author:  andrewsw [ Mon Oct 24, 2005 11:50 am ]
Post subject: 

thanks, I added the other link to the wiki as well in case anyone is interested... Planning on testing it later today and will post results here and on the wiki.

A

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