[freeside-commits] branch master updated. 6fd87713f1aca3f7fd2acc9126ce4f65255859c9

Ivan Kohler ivan at freeside.biz
Sat Dec 16 10:12:29 PST 2017


The branch, master has been updated
       via  6fd87713f1aca3f7fd2acc9126ce4f65255859c9 (commit)
      from  94be7e58a807d822aaa34151c5da9346c976d7a0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6fd87713f1aca3f7fd2acc9126ce4f65255859c9
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sat Dec 16 10:12:28 2017 -0800

    clean up old RT sessions

diff --git a/FS/FS/Cron/rt_tasks.pm b/FS/FS/Cron/rt_tasks.pm
index 077f23cc6..21488762a 100644
--- a/FS/FS/Cron/rt_tasks.pm
+++ b/FS/FS/Cron/rt_tasks.pm
@@ -31,6 +31,8 @@ sub rt_daily {
   my $system = $FS::TicketSystem::system;
   return if !defined($system) || $system ne 'RT_Internal';
 
+  system('/opt/rt3/sbin/rt-clean-sessions --older 1M --skip-user &');
+
   system('/opt/rt3/sbin/rt-fulltext-indexer --quiet --limit 5400 &');
 
   # if -d or -y is in use, bail out.  There's no reliable way to tell RT 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Cron/rt_tasks.pm | 2 ++
 1 file changed, 2 insertions(+)




More information about the freeside-commits mailing list