[Slackbuilds-users] clamav

Helmut Hullen Hullen at t-online.de
Thu Mar 28 14:25:00 UTC 2013


Hallo, Matteo,

Du meintest am 28.03.13:

> a) that's not shell syntax, check "man logrotate";
> b) maybe it's right for your customized installation but it does not
> apply to the current script in our repository.


Part of "clamav.SlackBuild":

-----------------------


# Our rc script and logrotate entry:
install -D -m 0755 $CWD/rc.clamav $PKG/etc/rc.d/rc.clamav.new
install -D -m 0644 $CWD/logrotate.clamav $PKG/etc/logrotate.d/clamav

-----------------------

and "logrotate.clamav" from the SBo clamav*.tgz-packet:

-----------------------

/var/log/clamav/*.log {
    su clamav clamav
    weekly
    rotate 5
    compress
    delaycompress
    notifempty
    missingok
    create 0660 clamav clamav
    postrotate
    /bin/kill -HUP `cat /var/run/clamav/clamd.pid 2>/dev/null` 2>/dev/null || true
    /bin/kill -HUP `cat /var/run/clamav/freshclam.pid 2>/dev/null` 2>/dev/null || true
    endscript
}

-----------------------

As mentioned: with the

        su ...
        create ...
        /bin/kill ... freshclam

lines it seems to work without problems.
User "clamav" and group "clamav" exist.

Viele Gruesse!
Helmut


More information about the SlackBuilds-users mailing list