suspect that /etc/cron.daily/optimize_mythdb.pl does not run with cron
Bug #290781 reported by
jboehm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mythbuntu |
Fix Released
|
Medium
|
Unassigned | ||
mythbuntu-common (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
mythbuntu-control-centre (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The daily crontab entry is
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily >> /var/log/cron.log )
and
run-parts --test --report /etc/cron.daily
Does not list optimize_mythdb.pl as one of the executables it will run. I suspect this due to *.xx extension. I had several other home grown script that were not executing until I removed the extension.
Changed in mythbuntu-common (Ubuntu): | |
status: | New → Fix Committed |
Changed in mythbuntu-control-centre (Ubuntu): | |
status: | New → Fix Committed |
To post a comment you must log in.
Thank you for reporting this issue. It is a known behavior of run-parts: Paragraph two of the man page for run-parts confirms that it won't execute files with periods in the filename (among other things) - only digits, letters, underscores, and hyphens are allowed by default.
The --lsbsysinit option doesn't work around it. The --regex does, but unless it is done carefully, it will pick up stuff with extensions that contain *.dpkg- [old,dist, new,tmp] , which I assume is not desirable.
The easiest way to work around this would be to either rename the script or create a symbolic link:
sudo ln -s optimize_mythdb.pl optimize_mythdb_pl