~ubuntu-branches/ubuntu/oneiric/request-tracker3.8/oneiric-updates

« back to all changes in this revision

Viewing changes to sbin/rt-clean-sessions

  • Committer: Bazaar Package Importer
  • Author(s): Dominic Hargreaves, Dominic Hargreaves, Christian Perrier
  • Date: 2009-06-16 21:46:59 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090616214659-5ji9k1n3qyc2br3n
Tags: 3.8.4-1
[ Dominic Hargreaves ]
* Add missing comma in Depends (fixes FTBFS on etch)
* Update debconf translations: pt.po, ja.po, sv.po, it.po, cs.po, ru.po
  (Closes: #519885, #519922, #520603, #520759, #521199, #521926)
* Document preference for not using SQLite in production
  (Closes: #512750)

[ Christian Perrier ]
* Debconf templates and debian/control reviewed by the debian-l10n-
  english team as part of the Smith review project.
  (Closes: #522367, #520959)
* [Debconf translation updates]
  - Japanese. Closes: #522896
  - German. Closes: #520958
  - Portuguese. Closes: #523481
  - Galician. Closes: #524256
  - Galician. Closes: #524256
  - Spanish. Closes: #524449
  - Italian. Closes: #524715
  - Russian. Closes: #524894
  - Swedish. Closes: #525171
  - French. Closes: #525281

[ Dominic Hargreaves ]
* Don't tell dbconfig to comment out unused variables, since this
  breaks MySQL and Postgres database configuration (Closes: #523090)
* Update Standards-Version (no changes)
* Switch dependency on sysklogd to rsyslog (Closes: #526914)
* New upstream release; includes
  - Minor security fix (Closes: #533069)
  - Add missing Postgres index (Closes: #512653)
* Patch webmux.pl to provide a better error message when the wrong
  major version of RT is in @INC (for example in a mod_perl context).
  (Closes: #518692)
* Add some more example Exim 4 configuration (Closes: #238345)
* Don't apply database ACLs in databases managed by dbconfig-common.
* Remove unused ACL patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
 
76
76
use Getopt::Long;
77
77
my %opt;
78
 
GetOptions( \%opt, "older=s", "debug", "help");
 
78
GetOptions( \%opt, "older=s", "debug", "help", "skip-user");
79
79
 
80
80
 
81
81
if ( $opt{help} ) {
124
124
    RT::Interface::Web::Session->ClearOld( $min );
125
125
}
126
126
 
127
 
RT::Interface::Web::Session->ClearByUser;
 
127
RT::Interface::Web::Session->ClearByUser
 
128
    unless $opt{'skip-user'};
128
129
 
129
130
exit(0);
130
131
 
142
143
    rt-clean sessions --debug
143
144
    rt-clean sessions --older 10D
144
145
    rt-clean sessions --debug --older 1M
 
146
    rt-clean sessions --older 10D --skip-user
145
147
 
146
148
=head1 DESCRIPTION
147
149
 
153
155
 
154
156
=head1 OPTIONS
155
157
 
156
 
=head2 older
 
158
=over 4
 
159
 
 
160
=item older
157
161
 
158
162
Date interval in the C<< <NUM>[<unit>] >> format. Default unit is D(ays),
159
163
H(our), M(onth) and Y(ear) are also supported.
161
165
For exmaple: C<rt-clean sessions --older 1M> would delete all sessions that are
162
166
older than 1 month.
163
167
 
164
 
=head2 debug
 
168
=item skip-user
 
169
 
 
170
By default only one session per user left in the DB, so users that have
 
171
sessions on multiple computers or in different browsers will be logged out.
 
172
Use this option to avoid this.
 
173
 
 
174
=item debug
165
175
 
166
176
Turn on debug output.
167
177
 
 
178
=back
 
179
 
168
180
=head1 NOTES
169
181
 
170
182
Functionality similar to this is implemented in