Right now,  the jamu job is included in both mythtv-frontend and
mythvideo packages, where jamu itself is only bundled with mythvideo. At
the very least, the cron job should be configured to check and see if
the jamu script actually exists before trying to run, and exit silently
if it doesn't. It would be ideal if this could also read in from
/etc/defaults/mythtv and have the option to disable it there on machines
that you don't want it running on (ie - frontend-only machines with
mythvideo installed.)

mythbackend1:/etc/cron.hourly# dpkg -S /etc/cron.hourly/mythtv-frontend 
/etc/cron.hourly/mythvideo 
mythtv-frontend: /etc/cron.hourly/mythtv-frontend
mythvideo: /etc/cron.hourly/mythvideo
mythbackend1:/etc/cron.hourly# cat /etc/cron.hourly/mythtv-frontend
#!/bin/sh
#Hourly massive update to ensure users see graphics coming in for upcoming 
recordings and current recordings
DIRECTORY=$(getent passwd mythtv | cut -d':' -f6)
if [ -f "$DIRECTORY/.mythtv/config.xml" ] && [ -x /usr/bin/mythbackend ]; then
    su mythtv -c "/usr/bin/python /usr/share/mythtv/mythvideo/scripts/jamu.py 
-MW >> '/var/log/mythtv/jamu.log' 2>&1"
fi

mythbackend1:/etc/cron.hourly# cat /etc/cron.hourly/mythvideo
#!/bin/sh
#Hourly massive update to ensure users see graphics coming in for upcoming 
recordings and current recordings
DIRECTORY=$(getent passwd mythtv | cut -d':' -f6)
if [ -f "$DIRECTORY/.mythtv/config.xml" ] && [ -x /usr/bin/mythbackend ]; then
    su mythtv -c "/usr/bin/python /usr/share/mythtv/mythvideo/scripts/jamu.py 
-MW >> '/var/log/mythtv/jamu.log' 2>&1"
fi

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/702661

Title:
  /etc/cron.hourly/mythvideo (jamu.py) should not run except on master
  backend

To manage notifications about this bug go to:
https://bugs.launchpad.net/mythbuntu/+bug/702661/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to