<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 11 March 2015 at 17:29, Peter Bennett <span dir="ltr"><<a href="mailto:cats22@comcast.net" target="_blank">cats22@comcast.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Arial;font-size:12pt;color:#000000"><div class="h5"><br></div><div style="FONT-SIZE:12pt;FONT-FAMILY:Helvetica,Arial,sans-serif;FONT-WEIGHT:normal;COLOR:#000;FONT-STYLE:normal;TEXT-DECORATION:none">I had the same problem with suspend, as soon as the backend stopped, the suspend process was also killed. The following resolved this.</div>
<div style="FONT-SIZE:12pt;FONT-FAMILY:Helvetica,Arial,sans-serif;FONT-WEIGHT:normal;COLOR:#000;FONT-STYLE:normal;TEXT-DECORATION:none">I changed the server halt command to this</div>
<div style="FONT-SIZE:12pt;FONT-FAMILY:Helvetica,Arial,sans-serif;FONT-WEIGHT:normal;COLOR:#000;FONT-STYLE:normal;TEXT-DECORATION:none">setsid /opt/mythtv/bin/systemshutdown.sh</div>
<div style="FONT-SIZE:12pt;FONT-FAMILY:Helvetica,Arial,sans-serif;FONT-WEIGHT:normal;COLOR:#000;FONT-STYLE:normal;TEXT-DECORATION:none">that is a script that in turn includes "sudo /usr/sbin/pm-suspend"</div>
<div style="FONT-SIZE:12pt;FONT-FAMILY:Helvetica,Arial,sans-serif;FONT-WEIGHT:normal;COLOR:#000;FONT-STYLE:normal;TEXT-DECORATION:none">The setsid command runs it under a different session and prevents the suspend from being killed when the back end is killed</div></div></div></blockquote><div><br></div><div>Ah! Thanks. I had tried nohup and disown, but setsid worked :-)<br></div><div>All is now well. *crosses fingers* <br clear="all"></div></div><br>-- <br><div class="gmail_signature">Simon Waldman<br><a href="mailto:swaldman@firecloud.org.uk" target="_blank">swaldman@firecloud.org.uk</a></div>
</div></div>