<div dir="ltr">On Thu, Mar 15, 2018 at 3:32 PM, Greg Oliver <span dir="ltr"><<a href="mailto:oliver.greg@gmail.com" target="_blank">oliver.greg@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div class="h5">On Thu, Mar 15, 2018 at 5:22 AM, Stephen Worthington <span dir="ltr"><<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>></span> wrote:<br></div></div><div class="gmail_extra"><div><div class="h5"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="m_4082946370182532004gmail-HOEnZb"><div class="m_4082946370182532004gmail-h5">On Thu, 15 Mar 2018 00:28:49 -0500, you wrote:<br>
<br>
>Long ago (a couple years back anyway :)<br>
><br>
>I used to use System Events (playback{start,stop,pause} to pop the<br>
>mythfrontend process into elevated cgroups while playing recordings.<br>
><br>
>With systemd, I just assign it and leave it nowadays.<br>
><br>
>I just tried to setup an event for RecordingFinished :<br>
><br>
>| EventCmdRecFinished | /12TB/mythtv/mythlink.sh "%CHANID%" "%STARTTIME%"<br>
>| backend-0 |<br>
><br>
>I restarted the backend (and frontend since I provisioned it from there),<br>
>and it is not taking effect.<br>
><br>
>Before I deleted the playback events I used, my logs were full of the<br>
>events with no extra logging turned on. I have not used them since 0.27<br>
>probably, but this is driving me nuts.<br>
><br>
>Anyone use these that could tell me I am doing something stupid somewhere?<br>
>I do not remember a tick box anywhere to turn them on or off (nor can I<br>
>find one).. There is nothing logged at all post recording.<br>
><br>
>Thanks<br>
><br>
>-Greg<br>
<br>
</div></div>I am getting EventCmdRecFinished calls to my Python program correctly<br>
in v29:<br>
<br>
MariaDB [mythconverg]> select * from settings where value like<br>
'EventCmdRecF%';<br>
+---------------------+-------<wbr>------------------------------<wbr>-----+----------+<br>
| value | data | hostname |<br>
+---------------------+-------<wbr>------------------------------<wbr>-----+----------+<br>
| EventCmdRecFinished | /usr/local/bin/mythsgu event RecFinished | mypvr |<br>
+---------------------+-------<wbr>------------------------------<wbr>-----+----------+<br>
1 row in set (0.00 sec)<br>
<br>
Mar 15 22:39:00 mypvr mythbackend: mythbackend[31016]: I CoreContext<br>
mythsystemevent.cpp:308 (customEvent) MythSystemEventHandler: Starting<br>
thread for command '/usr/local/bin/mythsgu event RecFinished'<br>
Mar 15 22:39:00 mypvr mythbackend: mythbackend[31016]: W SystemEvent<br>
mythsystemevent.cpp:55 (run) MythSystemEventHandler: Finished<br>
'/usr/local/bin/mythsgu event RecFinished' result 126<br>
<br>
Are the permissions right on /12TB/mythtv/mythlink.sh?<br></blockquote></div><br></div></div><div>Yep:<br><br>-rwxrwxr-x 1 greg greg 195 Mar 14 23:12 mythlink.sh<br><br></div><div>(mythbackend runs as greg)<br><br>greg 14657 0.7 1.6 6556176 202248 ? Ssl 00:04 7:03 /usr/bin/mythbackend --logpath /var/log/mythtv --verbose commflag<br><br></div><div>Like I said, I have used this in the past without issues, but it is not playing nice now for some reason. The logs show nothing when a recording finishes where they used to in 0.25 -> 0.27 when I imagine I used it last.<br><br></div><div>I'll upgrade tonight to 0.29 and see if it clears up - I have been meaning to anyhow.<br><br></div><div>Thanks for confirming yours works.<br></div></div></div>
</blockquote></div><br><div style="font-family:monospace,monospace" class="gmail_default">Well, upgraded earlier to 0.29 and it still does not work.. This is getting frustrating at this point - I will be gone all next week and need to link to plex to watch remotely.. I guess I'll have to look at the code to see if I missed a setting it is chekcing for somewhere.. I never remember having to set anything to run SystemEvent jobs though..<br><br></div><div style="font-family:monospace,monospace" class="gmail_default">Not to mention 0.29 has some weird issues that I do not have time to troubleshoot (like watching a recoding and having it blink in block with a live tv channel I am not even watching - best I can describe it) - weird thing is I can screenshot it from the API and it only shows the recording.. I hgave no idea how I have a live basketball (HDHR - CBS) game blinking in and out (which no one absolutely tuned) of a recording that was on an HDPVR (whose lineup does not even include ATSC US channels...?). What is really strange is that I just did a packet capture and the stream is not even going to mythtv. Of course, I just stopped and restarted watching the recording and it is gone. This is all for another topic though :)<br><br></div><div style="font-family:monospace,monospace" class="gmail_default">I might just roll back since 0.29 did not fix my immediate issue.<br></div><br></div></div>