Bug 493063 - Provide some way to turn off daily logwatch
Summary: Provide some way to turn off daily logwatch
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: logwatch
Version: 15
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jan Synacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-31 14:16 UTC by Ed Avis
Modified: 2012-03-07 09:19 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-07 09:19:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Logwatch conf patch (586 bytes, patch)
2012-03-07 09:09 UTC, Jan Synacek
no flags Details | Diff
Logwatch cron patch (496 bytes, patch)
2012-03-07 09:09 UTC, Jan Synacek
no flags Details | Diff
Logwatch main script patch (822 bytes, patch)
2012-03-07 09:10 UTC, Jan Synacek
no flags Details | Diff

Description Ed Avis 2009-03-31 14:16:23 UTC
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.)

Comment 1 Allen Kistler 2009-06-23 22:22:22 UTC
(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

HTH

Comment 2 Ivana Varekova 2009-06-26 07:08:56 UTC
Fixed in logwatch-7.3.6-44.fc12 (there is added option DailyReport).

Comment 3 Ken Dreyer 2011-10-31 23:17:17 UTC
Did this get wiped out? I don't see this option in F15.

Comment 4 Ken Dreyer 2011-10-31 23:44:41 UTC
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.

Comment 5 Fedora Admin XMLRPC Client 2011-12-16 10:47:35 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Jan Synacek 2012-03-07 09:09:17 UTC
Created attachment 568199 [details]
Logwatch conf patch

Comment 7 Jan Synacek 2012-03-07 09:09:44 UTC
Created attachment 568200 [details]
Logwatch cron patch

Comment 8 Jan Synacek 2012-03-07 09:10:09 UTC
Created attachment 568201 [details]
Logwatch main script patch

Comment 9 Jan Synacek 2012-03-07 09:19:08 UTC
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).


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