Red Hat Bugzilla – Bug 493063
Provide some way to turn off daily logwatch
Last modified: 2012-03-07 04:19:08 EST
The logwatch package installs /etc/cron.daily/0logwatch which sends a message every day. One might want to have the package installed, but without this daily cron job, so there should be some way to turn off the cron job.
Just removing the cron.daily/0logwatch file doesn't work because the next package update to logwatch will put it back again.
Please consider this an enhancement request to provide a way for sysadmins to have logwatch installed but without running the cron job daily.
(I understand that the specific suggestion of separating out the 0logwatch file into a separate package was rejected in #479720, but I still think it is important to be able to have logwatch installed without running the job daily, so perhaps there is some other solution to this.)
(In reply to comment #0)
> Please consider this an enhancement request to provide a way for sysadmins to
> have logwatch installed but without running the cron job daily.
Check out /usr/share/logwatch/default.conf/logwatch.conf, particularly the lines which read:
# if set, the results will be saved in <filename> instead of mailed
# or displayed.
#Save = /tmp/logwatch
Local configuration options then go in /etc/logwatch/conf/logwatch.conf
Fixed in logwatch-7.3.6-44.fc12 (there is added option DailyReport).
Did this get wiped out? I don't see this option in F15.
The Fedora-specific cron task was wiped in c74780a7 to align with upstream.
When this happened, the DailyReport option in /usr/share/logwatch/default.conf/logwatch.conf disappeared and the check in 0logwatch didn't survive.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Created attachment 568199 [details]
Logwatch conf patch
Created attachment 568200 [details]
Logwatch cron patch
Created attachment 568201 [details]
Logwatch main script patch
Attached some patches implementing the reported enhancement request.
As this change was rejected before, I'm closing this as WONTFIX.
Feel free to use the patches (turning off the cron job may be easier after all).