[mythtv-users] optimize before shut down

Bill Meek keemllib at gmail.com
Tue Apr 23 13:13:05 UTC 2019


On 4/23/19 6:43 AM, Stephen Worthington wrote:
> On Tue, 23 Apr 2019 07:19:44 -0400, you wrote:
> 
>>>
>>> a systemd timer and corresponding service unit. arch wiki: https://wiki.archlinux.org/index.php/Systemd/Timers
>>>
>>> _______________________________________________
>>>
>> Thanks for this, but I was looking for something that would call the script
>> just before the auto shutdown, which may be at different times on any given
>> evening. Any other ideas?
> 
> If you do a web search for "systemd run before shutdown" you can find
> some suggestions for how to do it.  I have never tried this myself.


There's also a MythTV System Event: 'Master backend shutdown' that fires
just before the backend (guess what) shuts down ;).

Or, https://www.freedesktop.org/software/systemd/man/systemd.service.html
and search for ExecStopPost.

I haven't tried either.

-- 
Bill


More information about the mythtv-users mailing list