Bug 64555 - mrtg need not append to /etc/crontab
Summary: mrtg need not append to /etc/crontab
Keywords:
Status: CLOSED DUPLICATE of bug 51812
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: mrtg
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-05-07 21:56 UTC by Joshua Jensen
Modified: 2008-05-01 15:38 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-05-21 15:42:47 UTC
Embargoed:


Attachments (Terms of Use)

Description Joshua Jensen 2002-05-07 21:56:18 UTC
Description of Problem:

[root@mule valhalla]# rpm -q mrtg --scripts
postinstall scriptlet (through /bin/sh):
if ! grep '* * * * root /usr/bin/mrtg' /etc/crontab > /dev/null; then
	echo "" >> /etc/crontab
	echo "0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/mrtg.cfg" >> /etc/crontab
fi

Why must crontab be appended to?  How about simply creating a file in
/etc/cron.d/ (just like we do with the sysstat file)?

Thank you.


Version-Release number of selected component (if applicable):

stock 7.3

Comment 1 Tom Wood 2002-05-21 15:42:41 UTC
This behavior of modifying /etc/crontab has another undesirable effect in that 
if one runs mrtg daemonized (with the "RunAsDaemon: y" in the mrtg.cfg file), 
this is unneeded and produces undesirable results.  Also, running daemonized 
with a config file other than /etc/mrtg.cfg results in conflicts between the 
daemonized version and the crontab runs, especially if the RedHat-expected 
/etc/mrtg.cfg isn't the same as the daemonized version's config file. 
 
My bottom line is that there should be no assumption in this package that this 
is to be run from crontab.  This causes nothing but grief for those of us 
running mrtg daemonized.

Comment 2 Joe Orton 2002-06-14 14:49:15 UTC

*** This bug has been marked as a duplicate of 51812 ***


Note You need to log in before you can comment on or make changes to this bug.