[Piuparts-commits] rev 327 - in piatti/home/piupartss: . bin

Holger Levsen holger at alioth.debian.org
Tue Apr 7 11:43:43 UTC 2009


Author: holger
Date: 2009-04-07 11:43:42 +0000 (Tue, 07 Apr 2009)
New Revision: 327

Added:
   piatti/home/piupartss/bin/detect_leftover_processes
   piatti/home/piupartss/crontab
Log:
add cronjob to check for leftover processes

Added: piatti/home/piupartss/bin/detect_leftover_processes
===================================================================
--- piatti/home/piupartss/bin/detect_leftover_processes	                        (rev 0)
+++ piatti/home/piupartss/bin/detect_leftover_processes	2009-04-07 11:43:42 UTC (rev 327)
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# Copyright 2009 Holger Levsen (holger at layer-acht.org)
+# 
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation; either version 2 of the License, or (at your
+# option) any later version.
+# 
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+# Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+OUTPUT=$(sudo ls /proc/*/root -lad 2>/dev/null|grep "/org/piuparts.debian.org/tmp" | grep "(deleted)")
+if [ "$OUTPUT" != "" ] ; then
+	echo "Found processes running with a deleted chroot in /org/piuparts.debian.org/tmp/"
+	echo "This is usually because of 'FAIL: Processes are running inside chroot'"
+	echo
+	echo $OUTPUT
+	echo
+	echo "Please cleanup manually."
+	echo "#522918 has been filed to make this manual operation unneeded."
+fi


Property changes on: piatti/home/piupartss/bin/detect_leftover_processes
___________________________________________________________________
Added: svn:executable
   + *

Added: piatti/home/piupartss/crontab
===================================================================
--- piatti/home/piupartss/crontab	                        (rev 0)
+++ piatti/home/piupartss/crontab	2009-04-07 11:43:42 UTC (rev 327)
@@ -0,0 +1,10 @@
+# m h dom mon dow (0|7=sun,1=mon)    command
+
+#
+# for normal checks, piupartsm's crontab should be used. This is only for tests which needs root priviledges
+#
+
+#
+# monitor for problems every two hours
+#
+23 */2 * * * /home/piupartss/bin/detect_leftover_processes




More information about the Piuparts-commits mailing list