|
From: William L. T. Jr. <wl...@ge...> - 2007-12-07 19:10:30
|
On Fri, 2007-12-07 at 03:36 -0200, PLUG Consultoria - Andr=C3=A9 Marcelo
wrote:
> Hi,
>=20
> There are some way to save maillog.log in /var/log ? I Tried fill ASSP
> Logfile with /var/log/maillog.log but nothing.
>=20
ASSP doesn't support absolute paths. Only relative to BASEDIR. You can
modify the code though if you really want your log file external.
Here is the sed we presently use on Gentoo to move the log file
to /var/log/assp.
sed -i -e 's|logs/maillog.txt|/var/log/assp/maillog.txt|' \
-e 's|mkdir "$base/$logdir",0700 if $logdir;||' \
-e 's|mkdir "$base/$logdir",0700;||' \
-e 's|$base/$logfile|$logfile|' \
-e 's|$base/$logdir|$logdir|' \
-e 's|"maillog.log"|"/var/log/assp/maillog.log"|' \
-e 's|-d "$base/logs" or mkdir "$base/logs",0700;||' \
-e 's|$base/$archivelogfile|$archivelogfile|' \
assp.pl
sed -i -e 's|} && "$Config{base}/$Config{logfile}" \|\| '\''maillog.txt'\''=
;|};|' \
rebuildspamdb.pl
sed -i -e 's|usr/local|var/log|' stats.sh
Should be portable amongst ASSP versions, but might need a few more/less
expressions.
--=20
William L. Thomson Jr.
Gentoo/Java
|