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

Reply via email to