Mailing List Archive

v0.28 and SystemEvents
Long ago (a couple years back anyway :)

I used to use System Events (playback{start,stop,pause} to pop the
mythfrontend process into elevated cgroups while playing recordings.

With systemd, I just assign it and leave it nowadays.

I just tried to setup an event for RecordingFinished :

| EventCmdRecFinished | /12TB/mythtv/mythlink.sh "%CHANID%" "%STARTTIME%"
| backend-0 |

I restarted the backend (and frontend since I provisioned it from there),
and it is not taking effect.

Before I deleted the playback events I used, my logs were full of the
events with no extra logging turned on. I have not used them since 0.27
probably, but this is driving me nuts.

Anyone use these that could tell me I am doing something stupid somewhere?
I do not remember a tick box anywhere to turn them on or off (nor can I
find one).. There is nothing logged at all post recording.

Thanks

-Greg
Re: v0.28 and SystemEvents [ In reply to ]
On Thu, 15 Mar 2018 00:28:49 -0500, you wrote:

>Long ago (a couple years back anyway :)
>
>I used to use System Events (playback{start,stop,pause} to pop the
>mythfrontend process into elevated cgroups while playing recordings.
>
>With systemd, I just assign it and leave it nowadays.
>
>I just tried to setup an event for RecordingFinished :
>
>| EventCmdRecFinished | /12TB/mythtv/mythlink.sh "%CHANID%" "%STARTTIME%"
>| backend-0 |
>
>I restarted the backend (and frontend since I provisioned it from there),
>and it is not taking effect.
>
>Before I deleted the playback events I used, my logs were full of the
>events with no extra logging turned on. I have not used them since 0.27
>probably, but this is driving me nuts.
>
>Anyone use these that could tell me I am doing something stupid somewhere?
>I do not remember a tick box anywhere to turn them on or off (nor can I
>find one).. There is nothing logged at all post recording.
>
>Thanks
>
>-Greg

I am getting EventCmdRecFinished calls to my Python program correctly
in v29:

MariaDB [mythconverg]> select * from settings where value like
'EventCmdRecF%';
+---------------------+------------------------------------------+----------+
| value | data | hostname |
+---------------------+------------------------------------------+----------+
| EventCmdRecFinished | /usr/local/bin/mythsgu event RecFinished | mypvr |
+---------------------+------------------------------------------+----------+
1 row in set (0.00 sec)

Mar 15 22:39:00 mypvr mythbackend: mythbackend[31016]: I CoreContext
mythsystemevent.cpp:308 (customEvent) MythSystemEventHandler: Starting
thread for command '/usr/local/bin/mythsgu event RecFinished'
Mar 15 22:39:00 mypvr mythbackend: mythbackend[31016]: W SystemEvent
mythsystemevent.cpp:55 (run) MythSystemEventHandler: Finished
'/usr/local/bin/mythsgu event RecFinished' result 126

Are the permissions right on /12TB/mythtv/mythlink.sh?
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: v0.28 and SystemEvents [ In reply to ]
Le jeudi 15 mars 2018, 23:22:58 CET Stephen Worthington a ?crit :
> On Thu, 15 Mar 2018 00:28:49 -0500, you wrote:
> >Long ago (a couple years back anyway :)
> >
> >I used to use System Events (playback{start,stop,pause} to pop the
> >mythfrontend process into elevated cgroups while playing recordings.
> >
> >With systemd, I just assign it and leave it nowadays.
> >
> >I just tried to setup an event for RecordingFinished :
> >| EventCmdRecFinished | /12TB/mythtv/mythlink.sh "%CHANID%" "%STARTTIME%"
> >| backend-0 |
> >
> >I restarted the backend (and frontend since I provisioned it from there),
> >and it is not taking effect.
> >
> >Before I deleted the playback events I used, my logs were full of the
> >events with no extra logging turned on. I have not used them since 0.27
> >probably, but this is driving me nuts.
> >
> >Anyone use these that could tell me I am doing something stupid somewhere?
> >I do not remember a tick box anywhere to turn them on or off (nor can I
> >find one).. There is nothing logged at all post recording.
> >
> >Thanks
> >
> >-Greg
>
> I am getting EventCmdRecFinished calls to my Python program correctly
> in v29:
>
> MariaDB [mythconverg]> select * from settings where value like
> 'EventCmdRecF%';
> +---------------------+------------------------------------------+----------
> +
> | value | data | hostname
> | |
>
> +---------------------+------------------------------------------+----------
> +
> | EventCmdRecFinished | /usr/local/bin/mythsgu event RecFinished | mypvr
> | |
>
> +---------------------+------------------------------------------+----------
> + 1 row in set (0.00 sec)
>
> Mar 15 22:39:00 mypvr mythbackend: mythbackend[31016]: I CoreContext
> mythsystemevent.cpp:308 (customEvent) MythSystemEventHandler: Starting
> thread for command '/usr/local/bin/mythsgu event RecFinished'
> Mar 15 22:39:00 mypvr mythbackend: mythbackend[31016]: W SystemEvent
> mythsystemevent.cpp:55 (run) MythSystemEventHandler: Finished
> '/usr/local/bin/mythsgu event RecFinished' result 126
>
> Are the permissions right on /12TB/mythtv/mythlink.sh?


Hi Stephen,

I have:

MariaDB [mythconverg]> select * from settings where value like 'EventCmdRecF
%';
Empty set (0.00 sec)


I have no mythlink.sh anywhere, I searched with ls and locate after running
updatdb.

I use MythTV 0.28.2 in Debian Stretch.

Bye

Klaus

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: v0.28 and SystemEvents [ In reply to ]
On Thu, Mar 15, 2018 at 5:22 AM, Stephen Worthington <
stephen_agent@jsw.gen.nz> wrote:

> On Thu, 15 Mar 2018 00:28:49 -0500, you wrote:
>
> >Long ago (a couple years back anyway :)
> >
> >I used to use System Events (playback{start,stop,pause} to pop the
> >mythfrontend process into elevated cgroups while playing recordings.
> >
> >With systemd, I just assign it and leave it nowadays.
> >
> >I just tried to setup an event for RecordingFinished :
> >
> >| EventCmdRecFinished | /12TB/mythtv/mythlink.sh "%CHANID%" "%STARTTIME%"
> >| backend-0 |
> >
> >I restarted the backend (and frontend since I provisioned it from there),
> >and it is not taking effect.
> >
> >Before I deleted the playback events I used, my logs were full of the
> >events with no extra logging turned on. I have not used them since 0.27
> >probably, but this is driving me nuts.
> >
> >Anyone use these that could tell me I am doing something stupid somewhere?
> >I do not remember a tick box anywhere to turn them on or off (nor can I
> >find one).. There is nothing logged at all post recording.
> >
> >Thanks
> >
> >-Greg
>
> I am getting EventCmdRecFinished calls to my Python program correctly
> in v29:
>
> MariaDB [mythconverg]> select * from settings where value like
> 'EventCmdRecF%';
> +---------------------+-------------------------------------
> -----+----------+
> | value | data |
> hostname |
> +---------------------+-------------------------------------
> -----+----------+
> | EventCmdRecFinished | /usr/local/bin/mythsgu event RecFinished | mypvr
> |
> +---------------------+-------------------------------------
> -----+----------+
> 1 row in set (0.00 sec)
>
> Mar 15 22:39:00 mypvr mythbackend: mythbackend[31016]: I CoreContext
> mythsystemevent.cpp:308 (customEvent) MythSystemEventHandler: Starting
> thread for command '/usr/local/bin/mythsgu event RecFinished'
> Mar 15 22:39:00 mypvr mythbackend: mythbackend[31016]: W SystemEvent
> mythsystemevent.cpp:55 (run) MythSystemEventHandler: Finished
> '/usr/local/bin/mythsgu event RecFinished' result 126
>
> Are the permissions right on /12TB/mythtv/mythlink.sh?
>

?Yep:

-rwxrwxr-x 1 greg greg 195 Mar 14 23:12 mythlink.sh

(mythbackend runs as greg)

greg 14657 0.7 1.6 6556176 202248 ? Ssl 00:04 7:03
/usr/bin/mythbackend --logpath /var/log/mythtv --verbose commflag

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.

I'll upgrade tonight to 0.29 and see if it clears up - I have been meaning
to anyhow.

Thanks for confirming yours works.??
Re: v0.28 and SystemEvents [ In reply to ]
On Thu, Mar 15, 2018 at 3:32 PM, Greg Oliver <oliver.greg@gmail.com> wrote:

> On Thu, Mar 15, 2018 at 5:22 AM, Stephen Worthington <
> stephen_agent@jsw.gen.nz> wrote:
>
>> On Thu, 15 Mar 2018 00:28:49 -0500, you wrote:
>>
>> >Long ago (a couple years back anyway :)
>> >
>> >I used to use System Events (playback{start,stop,pause} to pop the
>> >mythfrontend process into elevated cgroups while playing recordings.
>> >
>> >With systemd, I just assign it and leave it nowadays.
>> >
>> >I just tried to setup an event for RecordingFinished :
>> >
>> >| EventCmdRecFinished | /12TB/mythtv/mythlink.sh "%CHANID%"
>> "%STARTTIME%"
>> >| backend-0 |
>> >
>> >I restarted the backend (and frontend since I provisioned it from there),
>> >and it is not taking effect.
>> >
>> >Before I deleted the playback events I used, my logs were full of the
>> >events with no extra logging turned on. I have not used them since 0.27
>> >probably, but this is driving me nuts.
>> >
>> >Anyone use these that could tell me I am doing something stupid
>> somewhere?
>> >I do not remember a tick box anywhere to turn them on or off (nor can I
>> >find one).. There is nothing logged at all post recording.
>> >
>> >Thanks
>> >
>> >-Greg
>>
>> I am getting EventCmdRecFinished calls to my Python program correctly
>> in v29:
>>
>> MariaDB [mythconverg]> select * from settings where value like
>> 'EventCmdRecF%';
>> +---------------------+-------------------------------------
>> -----+----------+
>> | value | data |
>> hostname |
>> +---------------------+-------------------------------------
>> -----+----------+
>> | EventCmdRecFinished | /usr/local/bin/mythsgu event RecFinished | mypvr
>> |
>> +---------------------+-------------------------------------
>> -----+----------+
>> 1 row in set (0.00 sec)
>>
>> Mar 15 22:39:00 mypvr mythbackend: mythbackend[31016]: I CoreContext
>> mythsystemevent.cpp:308 (customEvent) MythSystemEventHandler: Starting
>> thread for command '/usr/local/bin/mythsgu event RecFinished'
>> Mar 15 22:39:00 mypvr mythbackend: mythbackend[31016]: W SystemEvent
>> mythsystemevent.cpp:55 (run) MythSystemEventHandler: Finished
>> '/usr/local/bin/mythsgu event RecFinished' result 126
>>
>> Are the permissions right on /12TB/mythtv/mythlink.sh?
>>
>
> ?Yep:
>
> -rwxrwxr-x 1 greg greg 195 Mar 14 23:12 mythlink.sh
>
> (mythbackend runs as greg)
>
> greg 14657 0.7 1.6 6556176 202248 ? Ssl 00:04 7:03
> /usr/bin/mythbackend --logpath /var/log/mythtv --verbose commflag
>
> 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.
>
> I'll upgrade tonight to 0.29 and see if it clears up - I have been meaning
> to anyhow.
>
> Thanks for confirming yours works.??
>

?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..

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 :)

I might just roll back since 0.29 did not fix my immediate issue.
Re: v0.28 and SystemEvents [ In reply to ]
On Thu, 15 Mar 2018 22:31:45 -0500, you wrote:

>On Thu, Mar 15, 2018 at 3:32 PM, Greg Oliver <oliver.greg@gmail.com> wrote:
>
>> On Thu, Mar 15, 2018 at 5:22 AM, Stephen Worthington <
>> stephen_agent@jsw.gen.nz> wrote:
>>
>>> On Thu, 15 Mar 2018 00:28:49 -0500, you wrote:
>>>
>>> >Long ago (a couple years back anyway :)
>>> >
>>> >I used to use System Events (playback{start,stop,pause} to pop the
>>> >mythfrontend process into elevated cgroups while playing recordings.
>>> >
>>> >With systemd, I just assign it and leave it nowadays.
>>> >
>>> >I just tried to setup an event for RecordingFinished :
>>> >
>>> >| EventCmdRecFinished | /12TB/mythtv/mythlink.sh "%CHANID%"
>>> "%STARTTIME%"
>>> >| backend-0 |
>>> >
>>> >I restarted the backend (and frontend since I provisioned it from there),
>>> >and it is not taking effect.
>>> >
>>> >Before I deleted the playback events I used, my logs were full of the
>>> >events with no extra logging turned on. I have not used them since 0.27
>>> >probably, but this is driving me nuts.
>>> >
>>> >Anyone use these that could tell me I am doing something stupid
>>> somewhere?
>>> >I do not remember a tick box anywhere to turn them on or off (nor can I
>>> >find one).. There is nothing logged at all post recording.
>>> >
>>> >Thanks
>>> >
>>> >-Greg
>>>
>>> I am getting EventCmdRecFinished calls to my Python program correctly
>>> in v29:
>>>
>>> MariaDB [mythconverg]> select * from settings where value like
>>> 'EventCmdRecF%';
>>> +---------------------+-------------------------------------
>>> -----+----------+
>>> | value | data |
>>> hostname |
>>> +---------------------+-------------------------------------
>>> -----+----------+
>>> | EventCmdRecFinished | /usr/local/bin/mythsgu event RecFinished | mypvr
>>> |
>>> +---------------------+-------------------------------------
>>> -----+----------+
>>> 1 row in set (0.00 sec)
>>>
>>> Mar 15 22:39:00 mypvr mythbackend: mythbackend[31016]: I CoreContext
>>> mythsystemevent.cpp:308 (customEvent) MythSystemEventHandler: Starting
>>> thread for command '/usr/local/bin/mythsgu event RecFinished'
>>> Mar 15 22:39:00 mypvr mythbackend: mythbackend[31016]: W SystemEvent
>>> mythsystemevent.cpp:55 (run) MythSystemEventHandler: Finished
>>> '/usr/local/bin/mythsgu event RecFinished' result 126
>>>
>>> Are the permissions right on /12TB/mythtv/mythlink.sh?
>>>
>>
>> ?Yep:
>>
>> -rwxrwxr-x 1 greg greg 195 Mar 14 23:12 mythlink.sh
>>
>> (mythbackend runs as greg)
>>
>> greg 14657 0.7 1.6 6556176 202248 ? Ssl 00:04 7:03
>> /usr/bin/mythbackend --logpath /var/log/mythtv --verbose commflag
>>
>> 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.
>>
>> I'll upgrade tonight to 0.29 and see if it clears up - I have been meaning
>> to anyhow.
>>
>> Thanks for confirming yours works.??
>>
>
>?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..
>
>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 :)
>
>I might just roll back since 0.29 did not fix my immediate issue.

How about testing using a simpler setup - put a very simple script
file in /usr/local/bin, so that it is accessible from any normal user,
and get it to log to a file. This is the script I use for testing
things like this (event_test.sh):

#!/bin/bash

me=$(/usr/bin/basename "${0}")
log=/var/log/mythtv/event_test.log

echo `date` "$me $@" >>$log
exit 0

# Use this as a template for inserting into the MythTV settings:
#/usr/local/bin/event_test.sh %SENDER% %HOSTNAME% %CARDID% %CHANID%
%DIR% %FILE% %PROGSTARTISOUTC% %PROGENDISOUTC% %STARTTIMEISOUTC%
%ENDTIMEISOUTC% %SECS% %REACTIVATE% %RECGROUP%


You also need to manually create the /var/log/mythtv/event_test.log
file:

sudo touch /var/log/mythtv/event_test.log
sudo chown greg:greg /var/log/mythtv/event_test.log
sudo chmod a=rw /var/log/mythtv/event_test.log

And here it is in use on my mother's MythTV box:

MariaDB [mythconverg]> select * from settings where value like
'EventCmdAll';
+-------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+
| value | data | hostname |
+-------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+
| EventCmdAll | /usr/local/bin/event_test.sh Any %SENDER% %HOSTNAME% %CARDID% %CHANID% %DIR% %FILE% %PROGSTARTISOUTC% %PROGENDISOUTC% %STARTTIMEISOUTC% %ENDTIMEISOUTC% %SECS% %REACTIVATE% %RECGROUP% | crw-pvr |
+-------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+
1 row in set (0.00 sec)

Mar 12 15:26:01 crw-pvr mythbackend: mythbackend[5145]: I SystemEvent
mythsystemevent.cpp:55 (run) MythSystemEventHandler: Finished
'/usr/local/bin/event_test.sh Any crw-pvr 1 1012 .
2018-03-12T01:30:00Z 2018-03-12T02:30:00Z 2018-03-12T01:30:00Z
2018-03-12T02:30:00Z 120 %REACTIVATE% Default' result 0

If you are not getting the above type of messages in mythbackend.log,
then somehow the events are not working. I do not think there is any
setting that will stop events from working - the way you stop events
is to remove the setting from the database for the event you want to
stop. Note that events are per host - if you run slave backends, you
have separate events for each backend, but I am not sure how to
configure that. But the hostname field matters. The log messages
should show up with the default logging level.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: v0.28 and SystemEvents [ In reply to ]
On 03/15/2018 10:31 PM, Greg Oliver wrote:
> >| EventCmdRecFinished  | /12TB/mythtv/mythlink.sh "%CHANID%" "%STARTTIME%"
> >| backend-0 |
> >
> >I restarted the backend (and frontend since I provisioned it from there),
> >and it is not taking effect.

Works for me in 30-pre too. If you provisioned it from the frontend,
I'd have expected the hostname to be that of the frontend too (so the
guess would be that the FE is on hostname backend-0.) In any case, when
I tested, I used mythtv-setup to add EventCmdRecFinished.

Didn't want to stop my backend, so used: mythutil --clearcache. Your
backend restart is just as good.

Got two entries in my BE log with just general logging. You could do
mythbackend --setverbose system:debug, but it shouldn't be necessary.

I have seen cases there the 1st line wasn't #!/bin/{ba}sh and for that matter,
cases where the shebang didn't start on the very 1st character of the file.

--
Bill
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: v0.28 and SystemEvents [ In reply to ]
On Thu, Mar 15, 2018 at 11:45 PM, Bill Meek <keemllib@gmail.com> wrote:

> On 03/15/2018 10:31 PM, Greg Oliver wrote:
>
>> >| EventCmdRecFinished | /12TB/mythtv/mythlink.sh "%CHANID%"
>> "%STARTTIME%"
>> >| backend-0 |
>> >
>> >I restarted the backend (and frontend since I provisioned it from
>> there),
>> >and it is not taking effect.
>>
>
> Works for me in 30-pre too. If you provisioned it from the frontend,
> I'd have expected the hostname to be that of the frontend too (so the
> guess would be that the FE is on hostname backend-0.) In any case, when
> I tested, I used mythtv-setup to add EventCmdRecFinished.
>

?Yes, the backend is also the FE for this TV.

?[root@backend-0 ~]# su - greg -c 'touch /12TB/mythtv/123.test'
?
-rw-rw-r--. 1 greg greg 0 Mar 16 00:03 /12TB/mythtv/123.test

?so no need to do the permissions rain dance.. I'm a long time unix user,
so I get all that, but there must be something I have jacked up somewhere
in the mythconverg database. I guess it might be best to jusy keep my
recorded tables and start over - I damn sure cannot find it :( ?

I just pulled the git sources and am going to make sure I cannot find a
property I inadvertently set off or something.

One thing thsat irks me is that I know mythTV as a whole is trying to
simplify settings, but at the same timew there are several settingfs I have
set which are no longfer in the GUI, but in the tables, still gave
meaning... I just do not get that...??? Oh well, enough ranting.. I am
digging through sources now.. Thanks for the input though.



>
> Didn't want to stop my backend, so used: mythutil --clearcache. Your
> backend restart is just as good.
>
> Got two entries in my BE log with just general logging. You could do
> mythbackend --setverbose system:debug, but it shouldn't be necessary.
>
> I have seen cases there the 1st line wasn't #!/bin/{ba}sh and for that
> matter,
> cases where the shebang didn't start on the very 1st character of the file.
>
> --
> Bill
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
Re: v0.28 and SystemEvents [ In reply to ]
On Fri, Mar 16, 2018 at 12:10 AM, Greg Oliver <oliver.greg@gmail.com> wrote:

> On Thu, Mar 15, 2018 at 11:45 PM, Bill Meek <keemllib@gmail.com> wrote:
>
>> On 03/15/2018 10:31 PM, Greg Oliver wrote:
>>
>>> >| EventCmdRecFinished | /12TB/mythtv/mythlink.sh "%CHANID%"
>>> "%STARTTIME%"
>>> >| backend-0 |
>>> >
>>> >I restarted the backend (and frontend since I provisioned it from
>>> there),
>>> >and it is not taking effect.
>>>
>>
>> Works for me in 30-pre too. If you provisioned it from the frontend,
>> I'd have expected the hostname to be that of the frontend too (so the
>> guess would be that the FE is on hostname backend-0.) In any case, when
>> I tested, I used mythtv-setup to add EventCmdRecFinished.
>>
>
> ?Yes, the backend is also the FE for this TV.
>
> ?[root@backend-0 ~]# su - greg -c 'touch /12TB/mythtv/123.test'
> ?
> -rw-rw-r--. 1 greg greg 0 Mar 16 00:03 /12TB/mythtv/123.test
>
> ?so no need to do the permissions rain dance.. I'm a long time unix user,
> so I get all that, but there must be something I have jacked up somewhere
> in the mythconverg database. I guess it might be best to jusy keep my
> recorded tables and start over - I damn sure cannot find it :( ?
>
> I just pulled the git sources and am going to make sure I cannot find a
> property I inadvertently set off or something.
>
> One thing thsat irks me is that I know mythTV as a whole is trying to
> simplify settings, but at the same timew there are several settingfs I have
> set which are no longfer in the GUI, but in the tables, still gave
> meaning... I just do not get that...??? Oh well, enough ranting.. I am
> digging through sources now.. Thanks for the input though.
>
>
>
>>
>> Didn't want to stop my backend, so used: mythutil --clearcache. Your
>> backend restart is just as good.
>>
>> Got two entries in my BE log with just general logging. You could do
>> mythbackend --setverbose system:debug, but it shouldn't be necessary.
>>
>> I have seen cases there the 1st line wasn't #!/bin/{ba}sh and for that
>> matter,
>> cases where the shebang didn't start on the very 1st character of the
>> file.
>>
>> --
>> Bill
>>
>>
?Well that was short lived :)

on the code I pulled,

[greg@yoga mythtv]$ grep -ri cmdrecfinished *
mythtv/libs/libmythtv/mythsystemevent.cpp:
m_settings["EventCmdRecFinished"] = // REC_FINISHED
mythtv/programs/mythbackend/config_backend_general.xml:
value="EventCmdRecFinished" label="Recording finished"
mythtv/programs/mythbackend/config_backend_general.xml:
help_text="EventCmdRecFinished"

I have no clue how to match ?m_settings["EventCmdRecFinished"] =

:)

?to something useful. I am no programmer, but can usually read
non-obfuscated (shout out to the perl monks :) code, but this I cannot
follow.. oh well. I guess I will chnage it to a user job and be done with
it..?
Re: v0.28 and SystemEvents [ In reply to ]
On 16/03/18 15:59, Greg Oliver wrote:

?Well that was short lived :)

on the code I pulled,

[greg@yoga mythtv]$ grep -ri cmdrecfinished *
mythtv/libs/libmythtv/mythsystemevent.cpp: m_settings["EventCmdRecFinished"] = // REC_FINISHED
mythtv/programs/mythbackend/config_backend_general.xml: value="EventCmdRecFinished" label="Recording finished"
mythtv/programs/mythbackend/config_backend_general.xml: help_text="EventCmdRecFinished"

I have no clue how to match ?m_settings["EventCmdRecFinished"] =

:)

?to something useful. I am no programmer, but can usually read non-obfuscated (shout out to the perl monks :) code, but this I cannot follow.. oh well. I guess I will chnage it to a user job and be done with it..?


Copy paste from about a dozen lines above in mythsystemevent.cpp:
// Event names are programmatically converted to settings names in
// EventNameToSetting(). For convenience of searching the code
// base, the event names are listed in comments.
....
m_settings["EventCmdRecFinished"] = // REC_FINISHED
tr("Recording finished");

Has the execute bit / permissions been checked on the intermediate directories of your script? What is the output of something like:
dir=/12TB/mythtv/; while [ "$dir" != "/" ]; do ls -ald $dir; dir=`dirname $dir`; done
Re: v0.28 and SystemEvents [ In reply to ]
On Fri, Mar 16, 2018 at 4:42 AM, Mark Perkins <perkins1724@hotmail.com>
wrote:

>
>
> On 16/03/18 15:59, Greg Oliver wrote:
>
>
> ?Well that was short lived :)
>
> on the code I pulled,
>
> [greg@yoga mythtv]$ grep -ri cmdrecfinished *
> mythtv/libs/libmythtv/mythsystemevent.cpp: m_settings["EventCmdRecFinished"]
> = // REC_FINISHED
> mythtv/programs/mythbackend/config_backend_general.xml:
> value="EventCmdRecFinished" label="Recording finished"
> mythtv/programs/mythbackend/config_backend_general.xml:
> help_text="EventCmdRecFinished"
>
> I have no clue how to match ?m_settings["EventCmdRecFinished"] =
>
> :)
>
> ?to something useful. I am no programmer, but can usually read
> non-obfuscated (shout out to the perl monks :) code, but this I cannot
> follow.. oh well. I guess I will chnage it to a user job and be done with
> it..?
>
>
> Copy paste from about a dozen lines above in mythsystemevent.cpp:
> // Event names are programmatically converted to settings names in
> // EventNameToSetting(). For convenience of searching the code
> // base, the event names are listed in comments.
> ....
> m_settings["EventCmdRecFinished"] = // REC_FINISHED
> tr("Recording finished");
>
> Has the execute bit / permissions been checked on the intermediate
> directories of your script? What is the output of something like:
> dir=/12TB/mythtv/; while [ "$dir" != "/" ]; do ls -ald $dir; dir=`dirname
> $dir`; done
>
>
?Yeah, actually /12TB/mythtv/recordings ?is where I currently record to..
My channel change script is in the same location, so...

?Thanks for pointing out the comment - I could have swore I read the whole
file, but now that I look at it, I assumed REC_FINISHED was after a
comment! I'll dig some more now.?
Re: v0.28 and SystemEvents [ In reply to ]
Well, the call to the recording finished does not even have any
conditionals around it, so it is supposed to run at the end of every
recording no matter what. Unless Richard Shaw patched it out while making
the RPM Fusion RPMs, I am at a total loss...




Thanks

-Greg

On Fri, Mar 16, 2018 at 4:34 PM, Greg Oliver <oliver.greg@gmail.com> wrote:

> On Fri, Mar 16, 2018 at 4:42 AM, Mark Perkins <perkins1724@hotmail.com>
> wrote:
>
>>
>>
>> On 16/03/18 15:59, Greg Oliver wrote:
>>
>>
>> ?Well that was short lived :)
>>
>> on the code I pulled,
>>
>> [greg@yoga mythtv]$ grep -ri cmdrecfinished *
>> mythtv/libs/libmythtv/mythsystemevent.cpp:
>> m_settings["EventCmdRecFinished"] = // REC_FINISHED
>> mythtv/programs/mythbackend/config_backend_general.xml:
>> value="EventCmdRecFinished" label="Recording finished"
>> mythtv/programs/mythbackend/config_backend_general.xml:
>> help_text="EventCmdRecFinished"
>>
>> I have no clue how to match ?m_settings["EventCmdRecFinished"] =
>>
>> :)
>>
>> ?to something useful. I am no programmer, but can usually read
>> non-obfuscated (shout out to the perl monks :) code, but this I cannot
>> follow.. oh well. I guess I will chnage it to a user job and be done with
>> it..?
>>
>>
>> Copy paste from about a dozen lines above in mythsystemevent.cpp:
>> // Event names are programmatically converted to settings names in
>> // EventNameToSetting(). For convenience of searching the code
>> // base, the event names are listed in comments.
>> ....
>> m_settings["EventCmdRecFinished"] = // REC_FINISHED
>> tr("Recording finished");
>>
>> Has the execute bit / permissions been checked on the intermediate
>> directories of your script? What is the output of something like:
>> dir=/12TB/mythtv/; while [ "$dir" != "/" ]; do ls -ald $dir; dir=`dirname
>> $dir`; done
>>
>>
> ?Yeah, actually /12TB/mythtv/recordings ?is where I currently record to..
> My channel change script is in the same location, so...
>
> ?Thanks for pointing out the comment - I could have swore I read the whole
> file, but now that I look at it, I assumed REC_FINISHED was after a
> comment! I'll dig some more now.?
>
>
Re: v0.28 and SystemEvents [ In reply to ]
On 20/03/18 14:00, Greg Oliver wrote:
Well, the call to the recording finished does not even have any conditionals around it, so it is supposed to run at the end of every recording no matter what. Unless Richard Shaw patched it out while making the RPM Fusion RPMs, I am at a total loss...




Thanks

-Greg

If I recall correctly system events are configured per host. But otherwise, yes, my understanding is that the recording finished system event runs at the end of every recording.

Have you changed your system hostname at all? What does your mythbackend log file show as being used for hostname at startup? Do you have an override value in your config.xml?
Re: v0.28 and SystemEvents [ In reply to ]
On Mon, Mar 19, 2018 at 11:38 PM, Mark Perkins <perkins1724@hotmail.com>
wrote:

>
>
> On 20/03/18 14:00, Greg Oliver wrote:
>
> Well, the call to the recording finished does not even have any
> conditionals around it, so it is supposed to run at the end of every
> recording no matter what. Unless Richard Shaw patched it out while making
> the RPM Fusion RPMs, I am at a total loss...
>
>
>
>
> Thanks
>
> -Greg
>
> If I recall correctly system events are configured per host. But
> otherwise, yes, my understanding is that the recording finished system
> event runs at the end of every recording.
>
> Have you changed your system hostname at all? What does your mythbackend
> log file show as being used for hostname at startup? Do you have an
> override value in your config.xml?
>
> ?
Damn - I am sure glad you asked me about the hostname.. I forgot Fedora
switched from /etc/sysconfig/hostname to /etc/hostname.. Hopefiully when I
change that, it will work..

Fingers crossed?
Re: v0.28 and SystemEvents [ In reply to ]
Just getting back home from an unexpected work trip and returning to this.

I just wanted to say thanks to everyone and say this is in fact fixed with
setting the hostname properly. The link script is still not working when
called with CHANID and STARTTIME, but I can work through that.

I guess I have been running with no hostname since v0.28 on Fedora 25 :(

Too many job hours on RHEL 3/4/5/6 I suppose. Thankfully RHEL 7 also
changed it to /etc/hostname...

Thanks again.

On Tue, Mar 20, 2018 at 12:31 AM, Greg Oliver <oliver.greg@gmail.com> wrote:

> On Mon, Mar 19, 2018 at 11:38 PM, Mark Perkins <perkins1724@hotmail.com>
> wrote:
>
>>
>>
>> On 20/03/18 14:00, Greg Oliver wrote:
>>
>> Well, the call to the recording finished does not even have any
>> conditionals around it, so it is supposed to run at the end of every
>> recording no matter what. Unless Richard Shaw patched it out while making
>> the RPM Fusion RPMs, I am at a total loss...
>>
>>
>>
>>
>> Thanks
>>
>> -Greg
>>
>> If I recall correctly system events are configured per host. But
>> otherwise, yes, my understanding is that the recording finished system
>> event runs at the end of every recording.
>>
>> Have you changed your system hostname at all? What does your mythbackend
>> log file show as being used for hostname at startup? Do you have an
>> override value in your config.xml?
>>
>> ?
> Damn - I am sure glad you asked me about the hostname.. I forgot Fedora
> switched from /etc/sysconfig/hostname to /etc/hostname.. Hopefiully when I
> change that, it will work..
>
> Fingers crossed?
>
>