suspect that /etc/cron.daily/optimize_mythdb.pl does not run with cron

Bug #290781 reported by jboehm
2
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.

Revision history for this message
MarcRandolph (mrand) wrote :

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

Changed in mythbuntu:
importance: Undecided → Medium
status: New → Triaged
Changed in mythbuntu-common (Ubuntu):
status: New → Fix Committed
Changed in mythbuntu-control-centre (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mythbuntu-common - 0.26-0ubuntu1

---------------
mythbuntu-common (0.26-0ubuntu1) jaunty; urgency=low

  [ Nick Fox ]
  * Fix dictionary for optimize_mythdb changes (LP: #290781)

 -- Mario Limonciello <email address hidden> Fri, 17 Apr 2009 01:56:34 -0500

Changed in mythbuntu-common (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mythbuntu-control-centre - 0.37-0ubuntu1

---------------
mythbuntu-control-centre (0.37-0ubuntu1) jaunty; urgency=low

  [ Nick Fox ]
  * Fix optimize_mythdb cron job (LP: #290781)
  * Allow experimental tweaks that are not role specific (LP: #290439)

 -- Mario Limonciello <email address hidden> Fri, 17 Apr 2009 01:48:38 -0500

Changed in mythbuntu-control-centre (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
MarcRandolph (mrand) wrote :

Looks like the released Mythbuntu calls out the mythbuntu-common in which this was fixed previously:

This bug was fixed in the package mythbuntu-common - 0.26-0ubuntu1

---------------
mythbuntu-common (0.26-0ubuntu1) jaunty; urgency=low

  [ Nick Fox ]
  * Fix dictionary for optimize_mythdb changes (LP: #290781)

Changed in mythbuntu:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.