[mythtv-users] Backend Reboot Script

Gary Buhrmaster gary.buhrmaster at gmail.com
Mon Jun 15 03:22:40 UTC 2015


On Mon, Jun 15, 2015 at 1:25 AM, Michael Wisniewski <mikewiz38 at gmail.com> wrote:
> I was wondering if anybody out there has a reboot or shutdown script that
> would prevent it if the backend is recording.
>
> There's been a few times where I'll do a reboot and then find out later that
> myth was recording something, then the recording will fail.  I could
> probably whip something together, but thought I would ask here to see if
> somebody has already done this.

Have not done so, but if you want a random suggestion of
how to proceed, I would look at a system start recording
event script that invokes

   '/usr/bin/systemd-inhibit --what="shutdown" --why="MythTV
Recording"  --mode=block /bin/sleep <calculated_time_from_%endtime%>'


More information about the mythtv-users mailing list