<br><br><div class="gmail_quote">On Sat, Nov 12, 2011 at 10:27 AM, Raymond Wagner <span dir="ltr">&lt;<a href="mailto:raymond@wagnerrp.com">raymond@wagnerrp.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div class="im">
    On 11/12/2011 10:00, Jeremy Jones wrote:
    <blockquote type="cite"><span style="font-family:arial, sans-serif;font-size:15px;background-color:rgb(255, 255, 255)">Is there a simple way to &#39;schedule&#39; a safe reboot
        of mythbackend? I read about mythwelcome, which I am not
        running, but It really does more than I want / need.  My backend
        runs all the time, and from time to time I will have an update
        that requires a restart.  Finding a time when the backend is not
        recording, transcoding, or commercial flagging is difficult, and
        lately seemingly impossible.</span><br>
    </blockquote>
    <br></div>
    The only time Linux package updates require a restart is when the
    package in question is a new kernel.  Seems to me a kernel update
    would be something you want to be present for, do deal with the
    inevitable problems that occur as a result.<br>
  </div>

<br></blockquote><div><br>That&#39;s true. What I would really like to do is pause any upcoming tasks b y the backend and pick a time between scheduled recordings.  Then I would restart it manually at that time.  The problem is everry time I look to attempt this, there is a job running or the box is recording.  <br>
<br>So, perhaps the question I should have asked is:<br><br>Is there a way to tell the backend to not start any more tasks, without killing those in progress?  Will the backend complete jobs / tasks already in progress if I simply stop the backend?<br>
<br><br><br>On Sat, Nov 12, 2011 at 11:16 AM, Michael T. Dean <span dir="ltr">&lt;<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>&gt;</span> wrote:<br><div style="margin-left: 40px;"><div class="h5">&gt;On 11/12/2011 10:00 AM, Jeremy Jones wrote:<br>

&gt;&gt; Is there a simple way to &#39;schedule&#39; a safe reboot of mythbackend? I<br>
&gt;&gt; read about mythwelcome, which I am not running, but It really does<br>
&gt;&gt; more than I want / need.  My backend runs all the time, and from time<br>
&gt;&gt; to time I will have an update that requires a restart.  Finding a time<br>
&gt;&gt; when the backend is not recording, transcoding, or commercial flagging<br>
&gt;&gt; is difficult, and lately seemingly impossible.<br>
&gt;<br>
</div></div><div style="margin-left: 40px;">&gt;You can use mythshutdown in a script.<br>
&gt;<br>
<a href="http://www.mythtv.org/wiki/Mythshutdown" target="_blank">&gt;http://www.mythtv.org/wiki/Mythshutdown</a> is the best documentation I know<br>
&gt;of--but is severely lacking, so feel free to add to it when you figure<br>
&gt;it out.  ;)  Also, feel free to upload your, &quot;reboot when safe,&quot; script<br>
&gt;to the wiki and place it in the category<br>
<a href="http://www.mythtv.org/wiki/Category:Scripts" target="_blank">&gt;http://www.mythtv.org/wiki/Category:Scripts</a> .<br>
&gt;<br>
&gt;Mike<br><br></div>Thanks Mike.  I&#39;ll check that out, maybe it will answer the question I posted above.  <br><br><br>Jeremy<br>  <br></div></div>