<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.18.2">
</HEAD>
<BODY>
On Sat, 2008-07-12 at 12:21 -0400, Michael T. Dean wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On 07/12/2008 08:21 AM, Glen Hawksworth wrote:
&gt; I have the need to setup a Myth box with automatic shutdown and 
&gt; startup. I can handle the ACPI setup, I can get it to turn on in time 
&gt; to tape the show and then shutdown again but I would like a way (other 
&gt; than having a frontend running) to prevent the system from shutting down.
&gt;
&gt; I need this because in addition to being a Mythbox, this will also be 
&gt; a personal computer for internet, word processing, the occasional 
&gt; game, etc.
&gt; What I was thinking was that if the system was at the login screen 
&gt; then it can shutdown. If the system is logged in (even if a front end 
&gt; is not running) then it wont automatically shutdown. The idea would be 
&gt; that the user would not shutdown their PC but instead when they are 
&gt; finished with it they would just log out leaving the PC to decide if 
&gt; it can shutdown.

Can't you do that with mythshutdown (i.e. related to mythwelcome, which 
comes with a standard mythtv install)?  Might require a script to add 
the &quot;if no other non-myth stuff is occuring, too,&quot; but it would be a 
much better starting point than a roll-your-own solution.

Mike
</PRE>
</BLOCKQUOTE>
I am pretty sure that mythshutdown will only hold off from shutting down if a frontend is connected or if a recording is happening (or if mythwelcome is used it will hold for a job). That said I think the script that I included does do what I want... oops.<BR>
I have used it before and seemed to remember that it would still shutdown if I was logged in (I was using the same box for torrents and I recall that If I left it for long periods it shut itself down regardless of login). Perhaps it will hold from a shut down if you are logged in and not idle?<BR>
Anyway, I'll keep an eye on it and see how it goes.
</BODY>
</HTML>