Bug 51812

Summary: should place script in /etc/cron.d instead of modifying /etc/crontab
Product: [Retired] Red Hat Linux Reporter: Mirko Zeibig <mirko>
Component: mrtgAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: 8.0CC: binand, bishop, gedetil, jos
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-08-17 06:41:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to RHL80 mrtg.spec to move cron work to separate file in /etc/cron.d
none
Patch to RHL73 mrtg.spec to move cron work to separate file in /etc/cron.d
none
Patch to RHL72 mrtg.spec to move cron work to separate file in /etc/cron.d none

Description Mirko Zeibig 2001-08-15 14:35:51 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010802

Description of problem:
Instead of fiddling around with /etc/crontab sth. like:

[root@heulsuse bin]# o /etc/cron.d/mrtg 
0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/mrtg.cfg

should be installed.

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


How reproducible:
Always

Steps to Reproduce:
1.None
	

Additional info:

Comment 1 Joe Orton 2002-06-14 14:48:01 UTC
*** Bug 62970 has been marked as a duplicate of this bug. ***

Comment 2 Joe Orton 2002-06-14 14:49:09 UTC
*** Bug 64555 has been marked as a duplicate of this bug. ***

Comment 3 Binand Sethumadhavan 2002-07-08 06:10:00 UTC
Is it possible for MRTG package to ship with an initscript for those of us 
who'd like to run it as a daemon? The default MRTG redhat ships makes the PID 
file in /etc/mrtg/mrtg.pid (when run as daemon). This should go to /var/run as 
well.

Comment 4 Bishop Clark 2002-12-14 13:11:39 UTC
Hey Nalin,

This bug's been kicking about for a good year or so.  I know that you're super
busy, but can I pick this one up, roll some modified packages and feed you some
patches?

It's a one-banana problem, really, and I wouldn't mind taking this one. 
Considering I have RHL 6.2-8.0 here, I may have a unique opportunity 8-)

Let me know.

Comment 5 Bishop Clark 2003-01-11 13:32:51 UTC
Created attachment 89300 [details]
Patch to RHL80 mrtg.spec to move cron work to separate file in /etc/cron.d

Patch to RHL80 mrtg.spec to move cron work to separate file in /etc/cron.d

Comment 6 Bishop Clark 2003-01-11 13:36:33 UTC
Created attachment 89301 [details]
Patch to RHL73 mrtg.spec to move cron work to separate file in /etc/cron.d

Patch to RHL73 mrtg.spec to move cron work to separate file in /etc/cron.d

Comment 7 Bishop Clark 2003-01-11 13:37:33 UTC
Created attachment 89302 [details]
Patch to RHL72 mrtg.spec to move cron work to separate file in /etc/cron.d

Patch to RHL72 mrtg.spec to move cron work to separate file in /etc/cron.d

Comment 8 Bishop Clark 2003-01-11 13:40:57 UTC
Release Notes on the patch:

 - The change causes the mrtg package to ship an /etc/cron.d/mrtg file.
 - I also noticed that literal/macro use in the SPEC wasn't uniform 
   and corrected that for one macro.
 - the RHL80 patch file is missing one mod:  I changed the %release to 9
   when it successfully built;  obviously I shipped the older diff, and I 
   didn't feel like spamming everyone with a new copy.  

All of these (S)RPMs are available at
http://www.platypus.bc.ca/~bishop/software/mrtg-rh/

Enjoy.  Test.  Share.  Etc.

Comment 9 Miloslav Trmač 2004-08-16 20:47:16 UTC
/etc/cron.d is used in FC2 mrtg-2.10.5-3.