X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=junkbuster.logrotate;h=0b88ac7a6d05b6ca046eab9b8fbccd1fe34597d6;hp=e8e8b92d6ac63f9700a77042cd69970fafa2747c;hb=7dc8f26e69637d6277f961e1291f35fe9de45601;hpb=c75584ebcc79f939fb4ec9c8f842cef6692640c7 diff --git a/junkbuster.logrotate b/junkbuster.logrotate index e8e8b92d..0b88ac7a 100644 --- a/junkbuster.logrotate +++ b/junkbuster.logrotate @@ -1,22 +1,79 @@ # # Logrotate file for Junkbuster RPM # -# $Id: junkbuster.logrotate,v 1.1 2001/04/30 03:17:00 rodney Exp $ - -# Fixed problems of -# filename.1 -> filename.1.2 -> filename.1.3 -# filename.1.2.2, filename.1.2.3, filename.1.3.2, filename.1.3.3 -# filename.1.2.2.2, filename.1.2.2.3 ... -# by explicitly listing each logfile in the directory instead of `*'. +# ******************************************************************** +# +# File : $Source: /cvsroot/ijbswa/current/junkbuster.logrotate,v $ +# +# Purpose : Rotates all potential Junkbuster logfiles +# +# +# Copyright : Written by and Copyright (C) 2001 the SourceForge +# IJBSWA team. http://ijbswa.sourceforge.net +# +# Based on the Internet Junkbuster originally written +# by and Copyright (C) 1997 Anonymous Coders and +# Junkbusters Corporation. http://www.junkbusters.com +# +# This program is free software; you can redistribute it +# and/or modify it under the terms of the GNU General +# Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will +# be useful, but WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU General Public +# License for more details. +# +# The GNU General Public License should be included with +# this file. If not, you can view it at +# http://www.gnu.org/copyleft/gpl.html +# or write to the Free Software Foundation, Inc., 59 +# Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# Revisions : +# $Log: junkbuster.logrotate,v $ +# Revision 1.6 2001/12/13 23:19:43 steudten +# Add 'restart' of junkbuster service after rotate logfiles. +# Better we could use the well known 'kill -HUP', but the handler +# isn't there at this time. +# +# Revision 1.5 2001/11/05 21:31:51 steudten +# Change switch mode from weekly to size 1M +# +# Revision 1.4 2001/06/28 13:30:22 sarantis +# add missingok for the jarfile entry +# +# Revision 1.3 2001/06/04 18:31:58 swa +# files are now prefixed with either `confdir' or `logdir'. +# `make redhat-dist' replaces both entries confdir and logdir +# with redhat values +# +# Revision 1.2 2001/05/24 07:52:24 swa +# added header. removed ^M. # +# Revision 1.3 2001/05/24 07:41:33 swa +# added header +# +# +# +# ********************************************************************/ -/var/log/junkbuster/junkbuster { +/var/log/junkbuster/logfile { compress - weekly + size 1M + postrotate + /sbin/service junkbuster reload 2> /dev/null || true + endscript } - -#/var/log/junkbuster/jarfile { -# compress -# weekly -#} +/var/log/junkbuster/jarfile { + missingok + compress + size 1M + postrotate + /sbin/service junkbuster reload 2> /dev/null || true + endscript +}