Sessiondata crontab on Solaris

Heads up for anyone NOT running RT on a Linux box:

This good advice from the RT/FM works great on Linux variants - since the
Linux ‘find’ understands ‘-amin +600’ to mean anything that hasn’t been
accessed in the last ten hours.

WARNING: Do not 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.
If you’re running RT on it’s own, this should not be an issue. Add these
lines to /etc/crontab:

Every hour, delete 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
’{}’ ;

Solaris ‘find’ is a little less granular - you have to change the ‘-amin
+600’ to ‘-atime +1’ - which means that anything that hasn’t been touched in
the last day [24 hours] gets deleted.

I’m guessing that if you’re handy enough to get RT running on Solaris, you
probably either already knew this or had the wherewithal to figure it out
for yourself.

For me it was one of those low-priority fixes that I just got around to
doing when I noticed that ‘sessiondata’ had some month-old files in it. If
you don’t have a very large WebRT partition on your box, this could
eventually be a problem. So. If you use Solaris, change your crontab to this
instead:

Every hour, delete session files and lockfiles that haven’t

been touched in 10 hours

0 * * * * find /path/to/rt2/WebRT/sessiondata -type f -atime +1 -exec rm
’{}’ ;

Oh - and if you didn’t know this, cron isn’t very happy when a crontab file
contains blank lines. If you want to ‘doublespace’ your cron entries for
readability, start each ‘empty’ line with a #

Drew M. Mooney Motorola Professional Services
817-245-7489 desk 5555 North Beach Street - Mailstop 6a
817-245-7522 fax Fort Worth, TX 76137
940-595-4761 mobile <mailto:dmooney1@email.mot.com
mailto:dmooney1@email.mot.com >
888-809-9678 pager <mailto:8888099678@skytel.com
mailto:8888099678@skytel.com >