Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191926 - sys-process/atop-1.20 installs broken cron.d script
Summary: sys-process/atop-1.20 installs broken cron.d script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 284259
  Show dependency tree
 
Reported: 2007-09-10 01:13 UTC by Jeroen Roovers (RETIRED)
Modified: 2009-09-09 13:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2007-09-10 01:13:11 UTC
dcron sends out e-mails like this:

- - - - - - - - - - - - - - - - - - - - -
From: "root@epia" <root@epia>
To: root
Subject: cron: root /etc/atop/atop.daily
Date: Tue, 14 Aug 2007 00:00:06 +0200

/bin/sh: root: command not found
- - - - - - - - - - - - - - - - - - - - -

$ cat /etc/cron.d/atop
# start atop daily at midnight
0 0 * * * root /etc/atop/atop.daily

dcron assumes anything after the 5th field to be part of the command to be issued. Versions <sys-process/atop-1.20 didn't have this issue.
Comment 1 SpanKY gentoo-dev 2007-09-10 01:32:57 UTC
i dont think it's a "dcron" issue, but rather atop installs a cron.d file which does not conform to the standard

http://www.opengroup.org/onlinepubs/009695399/utilities/crontab.html
Comment 2 SpanKY gentoo-dev 2007-09-10 01:37:31 UTC
fixed with 1.21
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2007-09-10 01:43:21 UTC
cvs up :)
Comment 4 Horst Prote 2008-01-31 16:06:00 UTC
(In reply to comment #1)

Maybe the author of atop had vixie-cron in his mind when creating /etc/cron.d/atop. In /usr/share/doc/vixie-cron-4.1-r10/FEATURES.bz2 it says:
--      If it exists, the /etc/cron.d/ directory is parsed like the cron
        spool directory, except that the files in it are not user-specific
        and are therefore read with /etc/crontab syntax (the user is
        specified explicitly in the 6th column).

As I disabled the atop cron job anyhow, I personally don't care if the atop package comes with an /etc/cron.d/atop compatible with vixie-cron or dcron or whatever-cron.