[mythtv-users] delaying mythbackend startup until a STB is available

Ian Cameron mkbloke at gmail.com
Tue Feb 5 10:17:20 UTC 2019


On Tue, 5 Feb 2019 15:08 Stephen Worthington <stephen_agent at jsw.gen.nz
wrote:

> I do not know of any way for Linux to know that it has had a power
> failure or similar bad shutdown.
>

You could script it, maybe touch a file on successful shutdown in non
volatile storage, perhaps by modifying the backend unit file. On startup,
if file exists, shutdown was clean, delete the file and carry on. If the
file does not exist, sleep for x time and then carry on.

Cheers, Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20190205/c802c10a/attachment.html>


More information about the mythtv-users mailing list