Thanks Reindl, and actually I agree with you given the number of stupid
issues I've struggled with since using Kali. But unfortunately, for
pentesting, I don't see any alternatives to kali.
Anyway thanks for posting your scripts, I'm using yours now. For
reference, the default logrotate files shipped with kali contains:
/var/log/openvas/gsad.log {
missingok
notifempty
create 640 root adm
daily
rotate 7
compress
postrotate
if [ -s /var/run/gsad.pid ]; then kill -1 `cat /var/run/gsad.pid`;
fi
openvaslogs=`ls /var/log/openvas/gsad.log.*`
if [ -n "$openvaslogs" ]; then
chown root:adm $openvaslogs
chmod 640 $openvaslogs
fi
endscript
}
Same for openvas manager and scanner...
On Wed, 2016-09-14 at 16:14 +0200, Reindl Harald wrote:
>
> Am 14.09.2016 um 14:42 schrieb tatooin:
> > Yes, I understand that. But the point is; why is this broken logrotate
> > script shipped by default with OpenVas (and actually, GSA) on kali ?
>
> because "kali" without ever used it seems to be a broken distribution
> when they are even not capable to write a working logrotate script which
> sends a SIGHUP to the process to actually get the filehandle closed
>
> [root@openvas:~]$ cat /etc/logrotate.d/openvas-gsa
> # logrotate for openvas-manager
> /var/log/openvas/openvas-gsa.log {
> rotate 4
> weekly
> compress
> delaycompress
> missingok
> postrotate
> /usr/bin/killall -HUP gsad > /dev/null 2>&1 || true
> endscript
> }
>
> [root@openvas:~]$ cat /etc/logrotate.d/openvas-manager
> # logrotate for openvas-manager
> /var/log/openvas/openvasmd.log {
> rotate 4
> weekly
> compress
> delaycompress
> missingok
> postrotate
> /usr/bin/killall -HUP openvasmd > /dev/null 2>&1 || true
> endscript
> }
>
> [root@openvas:~]$ cat /etc/logrotate.d/openvas-scanner
> # logrotate for openvas
> /var/log/openvas/openvassd.log {
> rotate 4
> weekly
> compress
> delaycompress
> missingok
> postrotate
> /usr/bin/killall -HUP openvassd > /dev/null 2>&1 || true
> endscript
> }
>
> > Probably a question best posted to Kali forums, though
>
> yes
> _______________________________________________
> Openvas-discuss mailing list
> [email protected]
> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss