crontab entries are incorrect

Bug #312809 reported by Daniel Swarbrick
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-motd (Ubuntu)
Fix Released
High
Dustin Kirkland 

Bug Description

Binary package hint: update-motd

Somebody needs to do a bit of basic sysadmin reading.

* 06 * * * root [ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd daily 2>/dev/null

The above entry will execute every minute, daily, from 06:00 until 06:59.

* * * * 1 root [ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd weekly 2>/dev/null

The above entry will execute every every minute of every hour on Mondays.

* * 1 * * root [ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd monthly 2>/dev/null

And the above entry will execute every minute of every hour, on the first day of every month.

Related branches

Changed in update-motd:
assignee: nobody → kirkland
importance: Undecided → High
status: New → In Progress
Revision history for this message
Matthew Copple (mcopple) wrote :

What version of update-motd are you using? I looked at the source package, as well as the cron.d entry placed when I installed the current version (1.8) of the package. It looks as follows:

# /etc/cron.d/update-motd: crontab fragment for update-motd
#
# Running 'update-motd' dynamically generates the /etc/motd with
# a concatenation of output from each script in /etc/update-motd.d.

*/10 * * * * root [ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null

Which runs every ten minutes.

Looking through the changelog, I don't see any mention of changes being made to the timing through releases. That does not appear to be the crontab installed with the package -- looks like someone wrote their own.

Changed in update-motd:
status: In Progress → Incomplete
Revision history for this message
Daniel Swarbrick (pressureman) wrote :

Package version is 1.9 (jaunty). I also have the */10 rule, but then the following four rules. I didn't add them myself.

00 * * * * root [ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd hourly 2>/dev/null
* 06 * * * root [ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd daily 2>/dev/null
* * * * 1 root [ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd weekly 2>/dev/null
* * 1 * * root [ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd monthly 2>/dev/null

Revision history for this message
Matthew Copple (mcopple) wrote :

Contents of update-motd.cron.d from update_motd_1.9:

# /etc/cron.d/update-motd: crontab fragment for update-motd
#
# Running 'update-motd' dynamically generates the /etc/motd with
# a concatenation of output from each script in /etc/update-motd.d/*

*/10 * * * * root [ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null
00 * * * * root [ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd hourly 2>/dev/null
* 06 * * * root [ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd daily 2>/dev/null
* * * * 1 root [ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd weekly 2>/dev/null
* * 1 * * root [ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd monthly 2>/dev/null

Changed in update-motd:
status: Incomplete → Confirmed
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Thanks for the bug report.

I'm attaching a patch for the Ubuntu package. Note that I have already committed this change to the upstream Launchpad branch, lp:update-motd.

I'm requesting main sponsorship.

:-Dustin

Changed in update-motd:
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-motd - 1.10

---------------
update-motd (1.10) jaunty; urgency=low

  * debian/update-motd.cron.d: Fix broken crontab entries, LP: #312809

 -- Dustin Kirkland <email address hidden> Mon, 05 Jan 2009 12:51:54 -0600

Changed in update-motd:
status: In Progress → 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.