[Mpuls-commits] r5133 - in base/trunk: . contrib contrib/scripts

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Jun 24 15:01:11 CEST 2011


Author: bh
Date: 2011-06-24 15:01:10 +0200 (Fri, 24 Jun 2011)
New Revision: 5133

Added:
   base/trunk/contrib/scripts/
   base/trunk/contrib/scripts/cleanup-session-cache
Modified:
   base/trunk/ChangeLog
Log:
* contrib/scripts/cleanup-session-cache: New. Script to be used as
a cron-job on the web-application system to clean up the beaker
cache. It removes session files that are older than 1 day.


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2011-06-24 08:52:48 UTC (rev 5132)
+++ base/trunk/ChangeLog	2011-06-24 13:01:10 UTC (rev 5133)
@@ -1,3 +1,9 @@
+2011-06-24  Bernhard Herzog  <bh at intevation.de>
+
+	* contrib/scripts/cleanup-session-cache: New. Script to be used as
+	a cron-job on the web-application system to clean up the beaker
+	cache. It removes session files that are older than 1 day.
+
 2011-06-24  Torsten Irländer <torsten.irlaender at intevation.de>
 
 	* mpulsweb/lib/validators.py: Issue1972: Return default time object

Added: base/trunk/contrib/scripts/cleanup-session-cache
===================================================================
--- base/trunk/contrib/scripts/cleanup-session-cache	2011-06-24 08:52:48 UTC (rev 5132)
+++ base/trunk/contrib/scripts/cleanup-session-cache	2011-06-24 13:01:10 UTC (rev 5133)
@@ -0,0 +1,11 @@
+#! /bin/bash
+
+# When beaker sessions are stored in on disk, the files of old and
+# expired sessions are not removed automatically. Over time, the file
+# system may become full or run out of inodes. The latter is more likely
+# in practice because the session files tend to be quite small.  
+#
+# This script cleans up the directory containing the session files. It
+# should be run regularly, preferably as a cron-job run once a day.
+
+find /tmp/data/sessions -type f \! -mtime 0 | xargs --no-run-if-empty rm --


Property changes on: base/trunk/contrib/scripts/cleanup-session-cache
___________________________________________________________________
Name: svn:executable
   + *



More information about the Mpuls-commits mailing list