Only gather host information if it's actually needed.
[privoxy.git] / privoxy.logrotate
1 #
2 # Logrotate file for Privoxy RPM
3 #
4 # ********************************************************************
5
6 #  File        :  $Source: /cvsroot/ijbswa/current/privoxy.logrotate,v $
7
8 #  Purpose     :  Rotates all potential Privoxy logfiles
9 #                 
10
11 #  Copyright   :  Written by and Copyright (C) 2001 the SourceForge
12 #                 Privoxy team. http://www.privoxy.org/
13
14 #                 Based on the Internet Junkbuster originally written
15 #                 by and Copyright (C) 1997 Anonymous Coders and 
16 #                 Junkbusters Corporation.  http://www.junkbusters.com
17
18 #                 This program is free software; you can redistribute it 
19 #                 and/or modify it under the terms of the GNU General
20 #                 Public License as published by the Free Software
21 #                 Foundation; either version 2 of the License, or (at
22 #                 your option) any later version.
23
24 #                 This program is distributed in the hope that it will
25 #                 be useful, but WITHOUT ANY WARRANTY; without even the
26 #                 implied warranty of MERCHANTABILITY or FITNESS FOR A
27 #                 PARTICULAR PURPOSE.  See the GNU General Public
28 #                 License for more details.
29
30 #                 The GNU General Public License should be included with
31 #                 this file.  If not, you can view it at
32 #                 http://www.gnu.org/copyleft/gpl.html
33 #                 or write to the Free Software Foundation, Inc., 59
34 #                 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
35
36 #  Revisions   :
37 #     $Log: privoxy.logrotate,v $
38 #     Revision 1.4.2.1  2002/06/25 17:33:07  kick_
39 #     Avoid error messages if privoxy hasn't run at all and there is no logfile yet by adding missingok to the logrotate script
40 #
41 #     Revision 1.4  2002/03/26 22:29:55  swa
42 #     we have a new homepage!
43 #
44 #     Revision 1.3  2002/03/24 15:19:57  swa
45 #     name change related issue.
46 #
47 #     Revision 1.2  2002/03/24 11:40:14  swa
48 #     name change
49 #
50 #     Revision 1.1  2002/03/24 11:23:44  swa
51 #     name change
52 #
53 #     Revision 1.7  2001/12/30 14:07:32  steudten
54 #     - Add signal handling (unix)
55 #     - Add SIGHUP handler (unix)
56 #     - Add creation of pidfile (unix)
57 #     - Add action 'top' in rc file (RH)
58 #     - Add entry 'SIGNALS' to manpage
59 #     - Add exit message to logfile (unix)
60 #
61 #     Revision 1.6  2001/12/13 23:19:43  steudten
62 #     Add 'restart' of junkbuster service after rotate logfiles.
63 #     Better we could use the well known 'kill -HUP', but the handler
64 #     isn't there at this time.
65 #
66 #     Revision 1.5  2001/11/05 21:31:51  steudten
67 #     Change switch mode from weekly to size 1M
68 #
69 #     Revision 1.4  2001/06/28 13:30:22  sarantis
70 #     add missingok for the jarfile entry
71 #
72 #     Revision 1.3  2001/06/04 18:31:58  swa
73 #     files are now prefixed with either `confdir' or `logdir'.
74 #     `make redhat-dist' replaces both entries confdir and logdir
75 #     with redhat values
76 #
77 #     Revision 1.2  2001/05/24 07:52:24  swa
78 #     added header. removed ^M.
79 #
80 #     Revision 1.3  2001/05/24 07:41:33  swa
81 #     added header
82 #
83
84
85 # ********************************************************************/
86
87 /var/log/privoxy/logfile {
88    missingok
89    compress
90    size 1M
91    postrotate
92         /sbin/service privoxy reload  2> /dev/null || true
93    endscript
94 }
95
96 /var/log/privoxy/jarfile {
97    missingok
98    compress
99    size 1M
100    postrotate
101         /sbin/service privoxy reload  2> /dev/null || true
102    endscript
103 }