cronjob for mythtv-status send's me many mails after upgrade to jaunty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mythbuntu |
Fix Released
|
Medium
|
Unassigned | ||
mythtv-status (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: mythtv-status
Description: Ubuntu 9.04
Release: 9.04
mythtv-status:
Installiert: 0.7.3-2ubuntu2
Kandidat: 0.7.3-2ubuntu2
Versions-Tabelle:
*** 0.7.3-2ubuntu2 0
500 http://
100 /var/lib/
After upgrading to jaunty every ten minutes root becomes this electronic message:
Envelope-to: root@htpc
Delivery-date: Fri, 22 May 2009 20:00:02 +0200
From: Cron Daemon <root@htpc>
To: root@htpc
Subject: Cron <root@obelix> [ -x /etc/init.
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/
X-Cron-Env: <LOGNAME=root>
mv: Aufruf von stat für „/var/run/motd.new“ nicht möglich: No such file or directory
ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
NonfreeKernelMo
Package: mythtv-status 0.7.3-2ubuntu2
PackageArchitec
ProcEnviron:
LANGUAGE=de_DE:de
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: mythtv-status
Uname: Linux 2.6.28-11-generic x86_64
Googling your error message results in the following hit: v2kblog. blogspot. com/2009/ 05/upgrading- mythbuntu- from-810- to-904. html
http://
which suggests the following work-around. Could you back up the below mentioned files and then try this solution?
This problem was caused by two cron jobs both trying to modify /etc/motd at the same time (every 10 minutes)! The update-motd cron job moves /var/run/motd.new out from underneath the mythtv-status job. You can see the two jobs in /etc/cron.d: d/mythtv- status /etc/cron. d/update- motd
# grep 10 /etc/cron.
/etc/cron. d/mythtv- status: */10 * * * * root [ -x /etc/init. d/mythtv- status ] && /etc/init. d/mythtv- status reload > /dev/null d/update- motd:*/ 10 * * * * root [ -x /usr/sbin/ update- motd ] && /usr/sbin/ update- motd 2>/dev/null
/etc/cron.
I believe what should really be happening is myth-status should be run by update-motd every 10 minutes instead of independently. Here is what I did to make that happen:
# rm /etc/cron. d/mythtv- status mythtv- status 50-mythtv-status
# cd /etc/update-motd.d/
# ln -s /usr/bin/