Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29012 - logwatch fails with fcron
Summary: logwatch fails with fcron
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-17 15:23 UTC by Matt Keadle
Modified: 2003-10-22 14:17 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 Matt Keadle 2003-09-17 15:23:27 UTC
a) Is it not a bit worrisome that logwatch automatically attempts to add itself
to the root crontab? I'm not sure how I feel about any package touching the
root/system crontab without intervention or option.

b) Having said that, logwatch fails at the above task when using fcron. Output
is as follows:

grep: /var/spool/cron/crontabs/root: No such file or directory
 * adding to cron...
/usr/sbin/ebuild.sh: line 58: /var/spool/cron/crontabs/root: No such file or
directory

The ebuild 

Reproducible: Always
Steps to Reproduce:
1. use fcron as your cron
2. emerge logwatch
3. watch logwatch fail at cron addition

Actual Results:  
Logwatch fails to add itself as a cron job

Expected Results:  
As intended by the ebuild, logwatch should have successfully added itself to cron.

I cannot agree that logwatch should in any way add itself to the root/system
crontab without any form of user intervention or action. At the most, a simple
message describing how to add it yourself should be put in pkg_postinst(), or
multi-cron capable code be placed in pkg_config().

Again, I do not want any package touching something like the system crontab
without warning or my authority.
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-09-21 19:52:04 UTC
marty, wanna handle this? I agree it should not add itself to the crontab
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-10-22 14:17:04 UTC
changed to message