Skip to content

Commit

Permalink
* Added template file for logrotate
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcobra1973 committed Aug 22, 2014
1 parent fa53f06 commit 6b56b05
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/logrotate.d/vpoller
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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 640 zabbix zabbix
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
}

0 comments on commit 6b56b05

Please sign in to comment.