<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 23, 2019, 13:17 Ian Cameron <<a href="mailto:mkbloke@gmail.com">mkbloke@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">On Tue, 23 Apr 2019 at 03:52, Daryl McDonald <<a href="mailto:darylangela@gmail.com" target="_blank" rel="noreferrer">darylangela@gmail.com</a>> wrote:<br></div><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 dir="ltr">Having the script in /etc/cron.daily doesn't seem to be functional, I'd like to have the database optimize itself just before the nightly auto-shutdown. What is a good way to accomplish this?  It's mythtv fixes 0.29 on Ubuntu desktop 18.04.  TIA  Daryl</div></blockquote><div><br></div><div>You say having the script in /etc/cron.daily is not functional, but you haven't entirely explained what you mean by that.</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"></div><div dir="auto">I don't se the benifit of the script running. Recording play back becomes irregularly paused and is remedied by running "./<a href="http://optimize_mythdb.pl">optimize_mythdb.pl</a>" in the terminal. (script is in two locations, Home and /etc/cron.daily)</div><div dir="auto"><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 class="gmail_quote"><div><br></div><div>IMHO, using the mythbackend shut-down event, as discussed elsewhere in this thread, could possibly be problematic.<br></div><div><br></div><div>Also IMHO, you might be better off looking at installing anacron to enable the DB optimisation, which will ensure that the DB optimisation script is run, at most, every x days, soon after boot (configurable delay) if the last execution time is greater than x days. </div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"></div><div dir="auto">anacron is installed!</div><div dir="auto"><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 class="gmail_quote"><div><br></div><div>As far as I know, the default packages for Ubuntu like systems will allow you to install anacron and place the Perl script (or a symlink to it) in /etc/cron.daily, which will automatically be handled by anacron if you have installed the anacron package alongside the standard cron package.<br></div><div><br></div><div>Cheers, Ian</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Would evdience of a "<a href="http://optimize_mythdb.pl">optimize_mythdb.pl</a>" run show up in a log somewhere?</div><div dir="auto"><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 class="gmail_quote"><div><br></div></div></div>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank" rel="noreferrer">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div></div></div>