LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File debian.openvas-manager.logrotate of Package openvas-manager (Project openSUSE:12.1)

/var/log/openvas/openvasmd.log {
  missingok
  notifempty
  create 640 root adm
  daily
  rotate 7
  compress
  postrotate
    if [ -s /var/run/openvasmd.pid ]; then kill -1 `cat /var/run/openvasmd.pid`; fi
    openvaslogs=`ls /var/log/openvas/openvasmd.log.*`
    if [ -n "$openvaslogs" ]; then
        chown root:adm $openvaslogs
        chmod 640 $openvaslogs
    fi
  endscript
}