[Piuparts-commits] rev 336 - piatti/home/piupartss/bin

Holger Levsen holger at alioth.debian.org
Sun Apr 12 12:19:13 UTC 2009


Author: holger
Date: 2009-04-12 12:19:13 +0000 (Sun, 12 Apr 2009)
New Revision: 336

Modified:
   piatti/home/piupartss/bin/detect_leftover_processes
Log:
avoid perm probs and be more verbose about the error detected

Modified: piatti/home/piupartss/bin/detect_leftover_processes
===================================================================
--- piatti/home/piupartss/bin/detect_leftover_processes	2009-04-11 11:42:24 UTC (rev 335)
+++ piatti/home/piupartss/bin/detect_leftover_processes	2009-04-12 12:19:13 UTC (rev 336)
@@ -22,15 +22,16 @@
 OUTPUT=$(sudo ls /proc/*/root -lad 2>/dev/null|grep "/org/piuparts.debian.org/tmp" | grep "(deleted)")
 if [ "$OUTPUT" != "" ] && [ "$(cat $LOCKFILE)" != "$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 "This is usually because of 'FAIL: Processes are running inside chroot' which usually"
+	echo "means the packages violates 'must use invoke-rc.d (policy 9.3.3.2)'."
 	echo
 	echo $OUTPUT
 	echo
 	echo "Please cleanup manually."
 	echo "#522918 has been filed to make this manual operation unneeded."
 	mkdir -p $MONITORDIR
-	chown piupartsm.piuparts $MONITORDIR
-	chmod 775 $MONITORDIR
+	sudo chown piupartsm.piuparts $MONITORDIR
+	sudo chmod 775 $MONITORDIR
 	echo $OUTPUT > $LOCKFILE
 	chmod 664 $LOCKFILE
 fi




More information about the Piuparts-commits mailing list