[Logwatch] Help Version 7.0 Problems

Mike Tremaine mgt at stellarcore.net
Mon Oct 17 07:05:44 MST 2005


On Sun, 2005-10-16 at 21:10 -0700, Ann Hopkins wrote:

> I can not get Version 7.0 to run because it refers to a directory called
> "default.conf".
> 
> I noticed in the logwatch.pl script the following:
> 
> ReadConfigFile ("$BaseDir/default.conf/logwatch.conf", "");
> ReadConfigFile ("$BaseDir/dist.conf/logwatch.conf", "");
> 
> What are these two directories?
> 
> "default.conf" is called this many times
> 
> 244:ReadConfigFile ("$BaseDir/default.conf/logwatch.conf", "");
> 399:opendir(SERVICESDIR, $BaseDir . '/default.conf/services') or
> 400:   die $BaseDir . "/default.conf/services: $!";
> 411:   ReadConfigFile("$BaseDir/default.conf/services/$f", "");
> 435:opendir(LOGFILEDIR, $BaseDir . "/default.conf/logfiles") or die $BaseDir .
> "/default.conf/logfiles/, no such directory.\n";
> 437:   unless (-d $BaseDir . "/default.conf/logfiles/" . $ThisFile) {
> 443:         ReadConfigFile("$BaseDir/default.conf/logfiles/" . $ThisFile, "");
> 
> and
> 
> "dist.conf" is called up this many times...
> 
> 245:ReadConfigFile ("$BaseDir/dist.conf/logwatch.conf", "");
> 412:   ReadConfigFile("$BaseDir/dist.conf/services/$f", "");

> 444:         ReadConfigFile("$BaseDir/dist.conf/logfiles/" . $ThisFile, "");
> 
> 
> Thanks.
> 

This is the new release structure. By default

my $BaseDir = "/usr/share/logwatch";
my $ConfigDir = "/etc/logwatch";

So all the services and script released by the logwatch are in
$BaseDir/default.conf

[mgt at dwarfstar scripts]$ cd /usr/share/logwatch/
[mgt at dwarfstar logwatch]$ ls
default.conf/  dist.conf/  lib/  scripts/
[mgt at dwarfstar logwatch]$ ls default.conf/
ignore.conf  logfiles/  logwatch.conf  services/

dist.conf is for scripts provided by the distribution 
and will ship empty from Logwatch.

[mgt at dwarfstar logwatch]$ ls dist.conf/
logfiles/  services/
[mgt at dwarfstar logwatch]$ ls dist.conf/logfiles/
[mgt at dwarfstar logwatch]$ ls dist.conf/services/

Does that help?

-Mike



More information about the Logwatch mailing list