~ubuntu-branches/ubuntu/quantal/lurker/quantal

« back to all changes in this revision

Viewing changes to prune/lurker-prune.sgml

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Meurer
  • Date: 2004-09-26 16:27:51 UTC
  • Revision ID: james.westby@ubuntu.com-20040926162751-z1ohcjltv7ojtg6z
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
 
2
 
 
3
<!-- Process this file with docbook-to-man to generate an nroff manual
 
4
     page: `docbook-to-man lurker-prune.sgml > lurker-prune.1'.
 
5
     You may view the manual page with:
 
6
     `docbook-to-man lurker-prune.sgml | nroff -man | less'.
 
7
     A typical entry in a Makefile or Makefile.am is:
 
8
 
 
9
lurker-prune.1: lurker-prune.sgml
 
10
        docbook-to-man $< > $@
 
11
  -->
 
12
 
 
13
  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
 
14
  <!ENTITY dhfirstname "<firstname>Wesley</firstname>">
 
15
  <!ENTITY dhsurname   "<surname>Terpstra</surname>">
 
16
  <!-- Please adjust the date whenever revising the manpage. -->
 
17
  <!ENTITY dhdate      "<date>May  10, 2003</date>">
 
18
  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
 
19
       allowed: see man(7), man(1). -->
 
20
  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
 
21
  <!ENTITY dhemail     "<email>terpstra@users.sourceforge.net</email>">
 
22
  <!ENTITY dhusername  "Wesley W. Terpstra">
 
23
  <!ENTITY support     "<email>lurker\-users@lists.sourceforge.net</email>">
 
24
  <!ENTITY dhucpackage "<refentrytitle>LURKER\-PRUNE</refentrytitle>">
 
25
  <!ENTITY dhpackage   "lurker\-prune">
 
26
 
 
27
  <!ENTITY debian      "<productname>Debian</productname>">
 
28
  <!ENTITY lurker      "<productname>lurker</productname>">
 
29
  <!ENTITY gnu         "<acronym>GNU</acronym>">
 
30
]>
 
31
 
 
32
<refentry>
 
33
  <refentryinfo>
 
34
    <address>
 
35
      &dhemail;
 
36
    </address>
 
37
    <author>
 
38
      &dhfirstname;
 
39
      &dhsurname;
 
40
    </author>
 
41
    <copyright>
 
42
      <year>2003</year>
 
43
      <holder>&dhusername;</holder>
 
44
    </copyright>
 
45
    &dhdate;
 
46
  </refentryinfo>
 
47
  <refmeta>
 
48
    &dhucpackage;
 
49
 
 
50
    &dhsection;
 
51
  </refmeta>
 
52
  <refnamediv>
 
53
    <refname>&dhpackage;</refname>
 
54
 
 
55
    <refpurpose>prunes the web-server cache</refpurpose>
 
56
  </refnamediv>
 
57
  <refsynopsisdiv>
 
58
    <cmdsynopsis>
 
59
      <command>&dhpackage;</command>
 
60
      <arg>\-c &lt;config-file&gt;</arg>
 
61
      <arg>\-d &lt;docroot&gt;</arg>
 
62
      <arg>\-p \-v</arg>
 
63
    </cmdsynopsis>
 
64
  </refsynopsisdiv>
 
65
  <refsect1>
 
66
    <title>DESCRIPTION</title>
 
67
 
 
68
    <para><command>&dhpackage;</command> prunes obsolete or stale files
 
69
      from the web-server accessible cache. This command must be run at
 
70
      regular intervals from eg. a cronjob. If it is not run, then the
 
71
      lurker web interface will appear to not be receiving new mail or have
 
72
      contradictory links between pages. A good interval is every 15 minutes
 
73
      and should not exceed one hour.</para>
 
74
 
 
75
    <para>Be aware that it is possible for an attacker to use up a large
 
76
      amount of disk space through lurker. An attacker could request many
 
77
      distinct lurker web pages each of which is cached, thus using disk
 
78
      space. Please setup a quota for the lurker user, read your logs, and
 
79
      follow whatever site-specific policies you have for denial of 
 
80
      service.</para>
 
81
     
 
82
    <para>A good script to run in parallel with normal lurker\-prune use is 
 
83
      one similar to: 
 
84
      if test `du \-s /var/www/lurker | cut \-f1` \-gt 32768; then lurker\-prune \-p; fi
 
85
      This might help guard against a potential denial-of-service attack.</para>
 
86
 
 
87
  </refsect1>
 
88
  <refsect1>
 
89
    <title>OPTIONS</title>
 
90
    <variablelist>
 
91
      <varlistentry>
 
92
        <term><option>\-c config-file</option></term>
 
93
        <listitem>
 
94
          <para>Use this config file for lurker settings.</para>
 
95
        </listitem>
 
96
      </varlistentry>
 
97
      <varlistentry>
 
98
        <term><option>\-d docroot</option></term>
 
99
        <listitem>
 
100
          <para>The base directory of the lurker cache. This must be set to
 
101
          the directory which contains message/*, thread/*, etc. If you have
 
102
          multiple running lurker interfaces, you must run this pointing
 
103
          at each of the document roots.</para>
 
104
        </listitem>
 
105
      </varlistentry>
 
106
      <varlistentry>
 
107
        <term><option>\-m days</option></term>
 
108
        <listitem>
 
109
          <para>Keep cached files for at most this many days. Any cached
 
110
          file regardless of last access will be deleted after the specified
 
111
          number of days (defaults to 7). Files which are obsolete due to
 
112
          new mail, config changes, or no accesses will be deleted earlier.
 
113
          Deleted files will be automagically regenerated if needed.</para>
 
114
        </listitem>
 
115
      </varlistentry>
 
116
      <varlistentry>
 
117
        <term><option>\-a days</option></term>
 
118
        <listitem>
 
119
          <para>Kill cache files not accessed for this many days. Any cached
 
120
          file which has not been read from for the specified number of days
 
121
          (defaults to 1) will be deleted. Files which are obsolete due to
 
122
          new mail or config changes will be deleted earlier.  Deleted files
 
123
          will be automagically regenerated if needed.</para>
 
124
        </listitem>
 
125
      </varlistentry>
 
126
      <varlistentry>
 
127
        <term><option>\-p</option></term>
 
128
        <listitem>
 
129
          <para>Purge mode. Delete all cache files even if they do not appear
 
130
          to be expired. This will only deletes files that are generated by
 
131
          lurker, and is thus preferable to rm */*.</para>
 
132
        </listitem>
 
133
      </varlistentry>
 
134
      <varlistentry>
 
135
        <term><option>\-v</option></term>
 
136
        <listitem>
 
137
          <para>Verbose operation. Indicate which files are being deleted
 
138
          and the reasoning behind lurker's decisions. This can help in
 
139
          tracking down why some files are deleted and not others.</para>
 
140
        </listitem>
 
141
      </varlistentry>
 
142
    </variablelist>
 
143
  </refsect1>
 
144
  <refsect1>
 
145
    <title>SEE ALSO</title>
 
146
    
 
147
    <para>lurker\-index(1), lurker\-params(1), lurker\-list(1)</para>
 
148
    <para>lurker documentation on http://lurker.sourceforge.net/</para>
 
149
 
 
150
  </refsect1>
 
151
  <refsect1>
 
152
    <title>COPYRIGHT</title>
 
153
 
 
154
    <para>
 
155
    Copyright (C) 2002: &dhusername; &lt;&dhemail;&gt;
 
156
    </para>
 
157
 
 
158
    <para>
 
159
    This program is free software; you can redistribute it and/or modify
 
160
    it under the terms of the GNU General Public License as published by
 
161
    the Free Software Foundation; version 2.
 
162
    </para>
 
163
    
 
164
    <para>
 
165
    This program is distributed in the hope that it will be useful,
 
166
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
167
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
168
    GNU General Public License for more details.
 
169
    </para>
 
170
    
 
171
    <para>
 
172
    You should have received a copy of the GNU General Public License
 
173
    along with this program; if not, write to the Free Software
 
174
    Foundation, Inc., 59 Temple Place - Suite 330,
 
175
    Boston, MA 02111-1307, USA.
 
176
    </para>
 
177
  </refsect1>
 
178
  
 
179
  <refsect1>
 
180
    <title>BUGS</title>
 
181
 
 
182
    <para>Before reporting a bug, please confirm that the bug you found is
 
183
    still present in the latest official release. If the problem persists,
 
184
    then send mail with instructions describing how to reproduce the bug to
 
185
    &lt;&support;&gt;.</para>
 
186
 
 
187
  </refsect1>
 
188
</refentry>
 
189
 
 
190
<!-- Keep this comment at the end of the file
 
191
Local variables:
 
192
mode: sgml
 
193
sgml-omittag:t
 
194
sgml-shorttag:t
 
195
sgml-minimize-attributes:nil
 
196
sgml-always-quote-attributes:t
 
197
sgml-indent-step:2
 
198
sgml-indent-data:t
 
199
sgml-parent-document:nil
 
200
sgml-default-dtd-file:nil
 
201
sgml-exposed-tags:nil
 
202
sgml-local-catalogs:nil
 
203
sgml-local-ecat-files:nil
 
204
End:
 
205
-->