# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-init-scripts/files/logrotate.mysql,v 1.2 2011/01/13 20:06:06 robbat2 Exp $

/var/log/vpoller/*.log {
#  rotate 4
#  monthly
#  compress
#  create 660 vpoller vpoller
  notifempty
  size 5M
  sharedscripts
  postrotate
    [ -f /etc/init.d/vpoller-proxy ] && /etc/init.d/vpoller-proxy restart > /dev/null 2>&1
    [ -f /etc/init.d/vpoller-worker ] && /etc/init.d/vpoller-worker restart > /dev/null 2>&1
  endscript
}
