Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 29a9b2c5d2c4c81acf43d9b3b4312d82 > files > 6

peerguardian-2.2.4-3.mga5.i586.rpm

/var/log/pgl/pgld.log {
    rotate 12
    daily
    compress
    delaycompress
    missingok
    notifempty
    prerotate
        # If pglcmd is installed, send statistics per mail.
        # The mail function forks a process that sleeps 5 seconds, so wait here longer.
        [ ! -x /usr/bin/pglcmd ] || (
        /usr/bin/pglcmd email_stats > /dev/null
        sleep 7
        )
    endscript
    postrotate
        # Reload pgld to reopen the logfile
        [ ! -e /var/run/pgld.pid ] || kill -s HUP $(cat /var/run/pgld.pid)
    endscript
}