mbox

logwatch 7.4.3: some more fixes for rootfile

Message ID 20170405114214.29447-1-matthias.fischer@ipfire.org
State Accepted
Commit cd31b51ea57d49fc406db3ce2a0e906454c8c48d
Headers

Message

Matthias Fischer April 5, 2017, 9:42 p.m. UTC
  Hi,

'eximstats', 'zz-sys' and 'resolver'-files were missing.

Best,
Matthias

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
 config/rootfiles/common/logwatch | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
  

Comments

Michael Tremer April 5, 2017, 10:42 p.m. UTC | #1
Hi,

we don't use exim. Why is this required?

-Michael

On Wed, 2017-04-05 at 13:42 +0200, Matthias Fischer wrote:
> Hi,
> 
> 'eximstats', 'zz-sys' and 'resolver'-files were missing.
> 
> Best,
> Matthias
> 
> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
> ---
>  config/rootfiles/common/logwatch | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/config/rootfiles/common/logwatch
> b/config/rootfiles/common/logwatch
> index 36b90677d..e99da016d 100644
> --- a/config/rootfiles/common/logwatch
> +++ b/config/rootfiles/common/logwatch
> @@ -94,7 +94,7 @@ usr/share/logwatch/default.conf/services/dhcpd.conf
>  #usr/share/logwatch/default.conf/services/evtsecurity.conf
>  #usr/share/logwatch/default.conf/services/evtsystem.conf
>  #usr/share/logwatch/default.conf/services/exim.conf
> -#usr/share/logwatch/default.conf/services/eximstats.conf
> +usr/share/logwatch/default.conf/services/eximstats.conf
>  #usr/share/logwatch/default.conf/services/extreme-networks.conf
>  #usr/share/logwatch/default.conf/services/fail2ban.conf
>  #usr/share/logwatch/default.conf/services/fetchmail.conf
> @@ -182,7 +182,7 @@ usr/share/logwatch/default.conf/services/zz-
> disk_space.conf
>  #usr/share/logwatch/default.conf/services/zz-lm_sensors.conf
>  usr/share/logwatch/default.conf/services/zz-network.conf
>  usr/share/logwatch/default.conf/services/zz-runtime.conf
> -#usr/share/logwatch/default.conf/services/zz-sys.conf
> +usr/share/logwatch/default.conf/services/zz-sys.conf
>  #usr/share/logwatch/default.conf/services/zz-zfs.conf
>  #usr/share/logwatch/dist.conf
>  usr/share/logwatch/dist.conf/logfiles
> @@ -238,7 +238,7 @@ usr/share/logwatch/scripts/services/dialup
>  #usr/share/logwatch/scripts/services/evtsecurity
>  #usr/share/logwatch/scripts/services/evtsystem
>  #usr/share/logwatch/scripts/services/exim
> -#usr/share/logwatch/scripts/services/eximstats
> +usr/share/logwatch/scripts/services/eximstats
>  #usr/share/logwatch/scripts/services/extreme-networks
>  #usr/share/logwatch/scripts/services/fail2ban
>  #usr/share/logwatch/scripts/services/fetchmail
> @@ -289,7 +289,7 @@ usr/share/logwatch/scripts/services/postfix
>  #usr/share/logwatch/scripts/services/qmail-send
>  #usr/share/logwatch/scripts/services/qmail-smtpd
>  #usr/share/logwatch/scripts/services/raid
> -#usr/share/logwatch/scripts/services/resolver
> +usr/share/logwatch/scripts/services/resolver
>  #usr/share/logwatch/scripts/services/rsyslogd
>  #usr/share/logwatch/scripts/services/rt314
>  usr/share/logwatch/scripts/services/samba
> @@ -326,7 +326,7 @@ usr/share/logwatch/scripts/services/zz-disk_space
>  #usr/share/logwatch/scripts/services/zz-lm_sensors
>  usr/share/logwatch/scripts/services/zz-network
>  usr/share/logwatch/scripts/services/zz-runtime
> -#usr/share/logwatch/scripts/services/zz-sys
> +usr/share/logwatch/scripts/services/zz-sys
>  #usr/share/logwatch/scripts/services/zz-zfs
>  #usr/share/logwatch/scripts/shared
>  usr/share/logwatch/scripts/shared/applybinddate
  
Matthias Fischer April 5, 2017, 10:51 p.m. UTC | #2
On 05.04.2017 14:42, Michael Tremer wrote:
> Hi,
> 
> we don't use exim. Why is this required?

Good question. I didn't find an answer yet.

During (Console-)testing I got the follwoing responses about
"Nonexistent service to disable" which could only be solved by adding
'zz-sys', 'resolver' and 'exim-stats':

root@ipfire: ~ # /usr/local/bin/logwatch > /var/log/logwatch/`date -I -d
yesterday`;       LOGWATCH_KEEP=$(sed -ne
's/^LOGWATCH_KEEP=\([0-9]\+\)$/\1/p' /var/ipfire/logging/settings);
 find /var/log/logwatch/ -ctime +${LOGWATCH_KEEP=56} -exec rm -f '{}' ';'
Nonexistent service to disable: zz-sys

root@ipfire: ~ # /usr/local/bin/logwatch > /var/log/logwatch/`date -I -d
yesterday`;       LOGWATCH_KEEP=$(sed -ne
's/^LOGWATCH_KEEP=\([0-9]\+\)$/\1/p' /var/ipfire/logging/settings);
 find /var/log/logwatch/ -ctime +${LOGWATCH_KEEP=56} -exec rm -f '{}' ';'
Nonexistent service to disable: eximstats

root@ipfire: ~ # /usr/local/bin/logwatch > /var/log/logwatch/`date -I -d
yesterday`;       LOGWATCH_KEEP=$(sed -ne
's/^LOGWATCH_KEEP=\([0-9]\+\)$/\1/p' /var/ipfire/logging/settings);
 find /var/log/logwatch/ -ctime +${LOGWATCH_KEEP=56} -exec rm -f '{}' ';'
Can't open: /usr/share/logwatch/scripts/services/resolver at
/usr/share/logwatch/scripts/logwatch.pl line 1344.

Best,
Matthias

> -Michael
> 
> On Wed, 2017-04-05 at 13:42 +0200, Matthias Fischer wrote:
>> Hi,
>> 
>> 'eximstats', 'zz-sys' and 'resolver'-files were missing.
>> 
>> Best,
>> Matthias
>> 
>> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
>> ---
>>  config/rootfiles/common/logwatch | 10 +++++-----
>>  1 file changed, 5 insertions(+), 5 deletions(-)
>> 
>> diff --git a/config/rootfiles/common/logwatch
>> b/config/rootfiles/common/logwatch
>> index 36b90677d..e99da016d 100644
>> --- a/config/rootfiles/common/logwatch
>> +++ b/config/rootfiles/common/logwatch
>> @@ -94,7 +94,7 @@ usr/share/logwatch/default.conf/services/dhcpd.conf
>>  #usr/share/logwatch/default.conf/services/evtsecurity.conf
>>  #usr/share/logwatch/default.conf/services/evtsystem.conf
>>  #usr/share/logwatch/default.conf/services/exim.conf
>> -#usr/share/logwatch/default.conf/services/eximstats.conf
>> +usr/share/logwatch/default.conf/services/eximstats.conf
>>  #usr/share/logwatch/default.conf/services/extreme-networks.conf
>>  #usr/share/logwatch/default.conf/services/fail2ban.conf
>>  #usr/share/logwatch/default.conf/services/fetchmail.conf
>> @@ -182,7 +182,7 @@ usr/share/logwatch/default.conf/services/zz-
>> disk_space.conf
>>  #usr/share/logwatch/default.conf/services/zz-lm_sensors.conf
>>  usr/share/logwatch/default.conf/services/zz-network.conf
>>  usr/share/logwatch/default.conf/services/zz-runtime.conf
>> -#usr/share/logwatch/default.conf/services/zz-sys.conf
>> +usr/share/logwatch/default.conf/services/zz-sys.conf
>>  #usr/share/logwatch/default.conf/services/zz-zfs.conf
>>  #usr/share/logwatch/dist.conf
>>  usr/share/logwatch/dist.conf/logfiles
>> @@ -238,7 +238,7 @@ usr/share/logwatch/scripts/services/dialup
>>  #usr/share/logwatch/scripts/services/evtsecurity
>>  #usr/share/logwatch/scripts/services/evtsystem
>>  #usr/share/logwatch/scripts/services/exim
>> -#usr/share/logwatch/scripts/services/eximstats
>> +usr/share/logwatch/scripts/services/eximstats
>>  #usr/share/logwatch/scripts/services/extreme-networks
>>  #usr/share/logwatch/scripts/services/fail2ban
>>  #usr/share/logwatch/scripts/services/fetchmail
>> @@ -289,7 +289,7 @@ usr/share/logwatch/scripts/services/postfix
>>  #usr/share/logwatch/scripts/services/qmail-send
>>  #usr/share/logwatch/scripts/services/qmail-smtpd
>>  #usr/share/logwatch/scripts/services/raid
>> -#usr/share/logwatch/scripts/services/resolver
>> +usr/share/logwatch/scripts/services/resolver
>>  #usr/share/logwatch/scripts/services/rsyslogd
>>  #usr/share/logwatch/scripts/services/rt314
>>  usr/share/logwatch/scripts/services/samba
>> @@ -326,7 +326,7 @@ usr/share/logwatch/scripts/services/zz-disk_space
>>  #usr/share/logwatch/scripts/services/zz-lm_sensors
>>  usr/share/logwatch/scripts/services/zz-network
>>  usr/share/logwatch/scripts/services/zz-runtime
>> -#usr/share/logwatch/scripts/services/zz-sys
>> +usr/share/logwatch/scripts/services/zz-sys
>>  #usr/share/logwatch/scripts/services/zz-zfs
>>  #usr/share/logwatch/scripts/shared
>>  usr/share/logwatch/scripts/shared/applybinddate
>