From: Bill Meek &lt;<a href="mailto:keemllib@gmail.com">keemllib@gmail.com</a>&gt;<br>To: <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>Cc: <br>Date: Tue, 27 Nov 2012 14:36:05 -0600<br>Subject: Re: [mythtv-users] Shutdown Issue - Need Help<br>

On 11/27/2012 02:13 PM, Jeff Hatfield wrote:<br>
...<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
When It doesn’t work - The problem comes in once the MythTv backend has<br>
been used.  Once it has recorded something, or I’ve used the frontend to<br>
watch a show, it will never shutdown again until I reboot.  It’s as if once<br>
the backend has been used to do something there is something loaded that<br>
keeps it from being idle.<br>
</blockquote>
...<br>
&gt; Any suggestions or troubleshooting tips are much appreciated.<br>
<br>
&gt;&gt;Hi;<br>
<br>
&gt;&gt;When the backend is in the &quot;It doesn&#39;t work&quot; mode, type:<br>
<br>
&gt;&gt;  mythshutdown --check -v general --loglevel info<br>
<br>
&gt;&gt;The last line(s) could help, and might look similar to this:<br>
<br> 
&gt;&gt; 2012-11-27 14:25:28.489279 I  Mythshutdown: --status returned: 16<br>
  &gt;&gt;2012-11-27 14:25:28.489325 I  Mythshutdown: --check returned: 1<br>
<br>
&gt;&gt;The return value must be 0 for shutdown to happen.<br>
<br>
&gt;&gt;Starting the backend with the -v idle,system could give you some<br>
clues if the above doesn&#39;t help.<br>
<br>
&gt;&gt;-- <br>
&gt;&gt;Bill<br><br>Bill - thanks for the tips - it was very helpful to see the output of the command (see below), but unfortunately, I still can&#39;t see a reason it&#39;s not shutting down after the backend records something.<br>

<br>I&#39;ll try your other suggestion about Starting the backend with the -v idle,system tonight and see what that does.<br><br> <br>mythshutdown --check -v general --loglevel info<br><br>When it&#39;s recording this is the output from the check<br>

<br>2012-11-28 19:12:33.577653 N  isRecording: Attempting to connect to master server...<br>2012-11-28 19:12:33.581842 I  MythCoreContext: Connecting to backend server: <a href="http://10.0.0.2:6543">10.0.0.2:6543</a> (try 1 of 1)<br>

2012-11-28 19:12:33.583654 I  Using protocol version 72<br>2012-11-28 19:12:33.588050 N  Recording in progress...<br>2012-11-28 19:12:33.677928 I  Mythshutdown: --status returned: 8<br>2012-11-28 19:12:33.677963 N  Not OK to shutdown<br>

2012-11-28 19:12:33.677982 I  Mythshutdown: --check returned: 1<br><br><br>As soon as it&#39;s done recording<br><br>2012-11-28 19:36:12.045205 N  Commercial Detection in progress...<br>2012-11-28 19:36:12.145499 N  isRecording: Attempting to connect to master server...<br>

2012-11-28 19:36:12.150087 I  MythCoreContext: Connecting to backend server: <a href="http://10.0.0.2:6543">10.0.0.2:6543</a> (try 1 of 1)<br>2012-11-28 19:36:12.151844 I  Using protocol version 72<br>2012-11-28 19:36:12.167073 N  Has queued or pending jobs<br>

2012-11-28 19:36:12.245775 I  Mythshutdown: --status returned: 34<br>2012-11-28 19:36:12.245808 N  Not OK to shutdown<br>2012-11-28 19:36:12.245822 I  Mythshutdown: --check returned: 1<br><br><br>As soon as it&#39;s done with flagging commercials, etc. - There were no shows scheduled to record for over 24 hours, so I just let it sit all night and it never shut down.<br>

<br>2012-11-28 19:51:30.592032 N  isRecording: Attempting to connect to master server...<br>2012-11-28 19:51:30.596256 I  MythCoreContext: Connecting to backend server: <a href="http://10.0.0.2:6543">10.0.0.2:6543</a> (try 1 of 1)<br>

2012-11-28 19:51:30.598138 I  Using protocol version 72<br>2012-11-28 19:51:30.692320 I  Mythshutdown: --status returned: 0<br>2012-11-28 19:51:30.692351 N  OK to shutdown<br>2012-11-28 19:51:30.692370 I  Mythshutdown: --check returned: 0<br>

<br>The next day I restarted the machine, got the mythshutdown check info below, and 20 min later it shutdown just the way it was supposed to. I&#39;m stumped.<br><br>2012-11-29 05:40:58.798808 N  isRecording: Attempting to connect to master server...<br>

2012-11-29 05:40:58.800741 I  MythCoreContext: Connecting to backend server: <a href="http://10.0.0.2:6543">10.0.0.2:6543</a> (try 1 of 1)<br>2012-11-29 05:40:58.801567 I  Using protocol version 72<br>2012-11-29 05:40:58.899071 I  Mythshutdown: --status returned: 0<br>

2012-11-29 05:40:58.899092 N  OK to shutdown<br>2012-11-29 05:40:58.899112 I  Mythshutdown: --check returned: 0<br>