<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2655.19">
<TITLE>Sessiondata crontab on Solaris....</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">Heads up for anyone NOT running RT on a Linux box:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>

<P><B><FONT FACE="Times New Roman">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.</FONT></B><FONT FACE="Times New Roman"><BR>
If you're running RT on it's own, this should not be an issue. Add these lines to /etc/crontab: </FONT>
<BR><FONT SIZE=2 FACE="Courier New"># Every hour, delete session files and lockfiles that haven't</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># been touched in 10 hours</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">0 * * * * find /path/to/rt2/WebRT/sessiondata -type f -amin +600 -exec rm '{}' \;</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">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:</FONT></P>

<P><FONT SIZE=2 FACE="Courier New"># Every hour, delete session files and lockfiles that haven't</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># been touched in 10 hours</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
<BR><FONT SIZE=2 FACE="Courier New">0 * * * * find /path/to/rt2/WebRT/sessiondata -type f -atime +1 -exec rm '{}' \;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Courier New">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 #</FONT></P>
<BR>

<P><B><FONT SIZE=2 FACE="Arial">Drew M. Mooney</FONT></B> <B> <FONT SIZE=2 FACE="Arial">Motorola Professional Services</FONT></B>
<BR><FONT SIZE=2 FACE="Arial">817-245-7489<I> desk</I>       5555 North Beach Street - Mailstop 6a</FONT>
<BR><FONT SIZE=2 FACE="Arial">817-245-7522</FONT><I> <FONT SIZE=2 FACE="Arial">fax</FONT></I>        <FONT SIZE=2 FACE="Arial">Fort Worth, TX 76137</FONT>
<BR><FONT SIZE=2 FACE="Arial">940-595-4761</FONT><I> <FONT SIZE=2 FACE="Arial">mobile</FONT></I>    <U> <FONT COLOR="#0000FF" SIZE=2 FACE="Arial"><</FONT></U><A HREF="mailto:dmooney1@email.mot.com"><U></U><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">mailto:dmooney1@email.mot.com</FONT></U><U></U></A><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">></FONT></U>
<BR><FONT SIZE=2 FACE="Arial">888-809-9678</FONT><I> <FONT SIZE=2 FACE="Arial">pager</FONT></I>     <U> <FONT COLOR="#0000FF" SIZE=2 FACE="Arial"><</FONT></U><A HREF="mailto:8888099678@skytel.com"><U></U><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">mailto:8888099678@skytel.com</FONT></U><U></U></A><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">></FONT></U>
</P>
<BR>

</BODY>
</HTML>