<!DOCTYPE html><html><head>
<style type="text/css">body { font-family:'DejaVu Sans'; font-size:13px}</style>
</head>
<body>On Wed, 04 Sep 2013 23:13:17 +0100, Daryl McDonald <darylangela@gmail.com> wrote:<br><br><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex"><div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><div>Did the log not identify that idle conditions were detected? There have been times, days ago that I would open the frontend only to get a prompt, "could not connect to backend, is it running" my backend starts automatically, so I would just close the front, open the back and close it again, and then the front would have no problems. It has become apparent recently that there is a, much more simple, terminal command to start the backend, however I have already waited about one hour for myth to shut itself down, a recording is scheduled for 19:00, about 45 minutes from now. I will let you know how that turns out, and I'll remove the other README~ after the current test concludes.</div>
<div><br></div><div>Ciao, Daryl</div></div><br></div></div>
</blockquote><div><br></div><div>If it hasn't shut down after 15 mins, I think it's safe to say it's never going to...<br></div><div><br></div><div>The issue is probably your checklogin.sh script. Assuming you're using the one from the wiki, I'm wondering if it's suitable for you.</div><div><br></div><div>I'm not entirely clear on how you are using your system (or your intended goal) so it would be useful if you would clarify exactly what you expect it to do.</div><div><br></div><div>For example, when my Mythbuntu system starts my user logs in automatically & starts Mythfrontend. When I've finished I exit Mythfrontend and the backend shuts the system down. The important point is that my single (desktop) user is still logged in when it shuts down. I believe the wiki checklogin.sh script won't do this. I *think* it requires you to log out of the desktop (back to the desktop login prompt) before it will shut down. When you're waiting a long time, are you actually doing this ? This may be what you want but it seems inconvenient to me, particularly from a remote. </div><div><br></div><div>If I want to use the desktop (ie. web browser/Skype etc.) I simply leave MythFrontend running in the background (I've disabled the 'new' Standby mode though - I'm not sure how that affects things).</div><div><br></div><div>However sometimes I need to use my machine for other stuff (maintenance etc.) and I log in via network from a laptop to do it. For this I need the checklogin script to prevent Myth from turning the box off until I've finished (& logged out). </div><div><br></div><div>I'm sure others will provide alternative usage scenarios but my point is: when do you want Myth to shut the box down & when do you want to prevent Myth from doing so ? You may not even need the checklogin.sh at all.</div><div><br></div><div>FWIW my version of checklogin.sh is;</div><div><br></div><div>#!/bin/bash<br># Check to see if anyone is currently logged in. Return zero if not and 1 if so.<br># Echoed text appears in log file. It can be removed and --quiet added to the <br># grep command once you are satisfied that mythTV is working properly<br><br># Get a date/time stamp to add to log output<br>DATE=`date +%F\ %T\.%N`<br>DATE=${DATE:0:23}<br><br>if <br> last | head | grep "still logged in" <br> then<br> echo $DATE Remote user is logged in, don\'t shut down! <br> exit 1<br> else<br> echo $DATE No-one is logged in, ok to shut down.<br> exit 0<br>fi<br></div><div><br></div><br><br></body></html>