[rt-users] More an d more garbage files in ./rt2/WebRT/sessiondata

Andreas Kruthoff andreas.kruthoff at softwired-inc.com
Thu Oct 10 05:03:53 EDT 2002


It's documented in the README:

Additionally, you should set up a cron job to remove stale session data.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 WARNING: Don't install this cron job or run this find command if your
 MASON_SESSION_PATH (known in config.pm as $MasonSessionDir)
 points to a directory that could  EVER contain any file that's not
 a Apache::Session datafile.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

# Every hour, nuke session files and lockfiles that haven't been
# touched in 10 hours

0 * * * * find /path/to/rt2/WebRT/sessiondata -type f -amin +600 -exec rm {} 
\;

-andreas




On Thursday 10 October 2002 10:48, Ruben Schattevoy wrote:
> We have setup and running RT2 since about two
> months. Now we have discovered that about 500
> files per day are created in the sessiondata
> directory. Aparently these files never get
> removed. The following output may give an idea
> of the kind of files which fill up the session-
> data directory:
>
> WebRT/sessiondata# ls -alF *adb669ef78e0b4566745e6adaebb2982*
> -rw-------    1 wwwrun   nogroup         0 Aug 16 20:16
> Apache-Session-adb669ef78e0b4566745e6adaebb2982.lock
> -rw-------    1 wwwrun   nogroup        56 Aug 16 20:16
> adb669ef78e0b4566745e6adaebb2982
>
> Is this a bug, a failour with our local installation
> or is this a feature? Would it be safe to delete
> all these files?
>
> Thanks,
>
> Ruben
>
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
>
> Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm




More information about the rt-users mailing list