[26176] in Source-Commits
/svn/athena r25439 - trunk/debathena/config/reactivate/debian
daemon@ATHENA.MIT.EDU (Benjamin Kaduk)
Tue Nov 8 21:20:35 2011
Date: Tue, 8 Nov 2011 21:20:34 -0500
From: Benjamin Kaduk <kaduk@MIT.EDU>
Message-Id: <201111090220.pA92KY0v025158@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: kaduk
Date: 2011-11-08 21:20:33 -0500 (Tue, 08 Nov 2011)
New Revision: 25439
Modified:
trunk/debathena/config/reactivate/debian/changelog
trunk/debathena/config/reactivate/debian/reactivate
Log:
In reactivate:
* Save lots of debugging information if we are rebooting in reactivate.
It will go to athena-reactivate.log for later forensics.
Modified: trunk/debathena/config/reactivate/debian/changelog
===================================================================
--- trunk/debathena/config/reactivate/debian/changelog 2011-11-08 00:04:59 UTC (rev 25438)
+++ trunk/debathena/config/reactivate/debian/changelog 2011-11-09 02:20:33 UTC (rev 25439)
@@ -1,3 +1,10 @@
+debathena-reactivate (2.0.29) unstable; urgency=low
+
+ * Save lots of debugging information if we are rebooting in reactivate.
+ It will go to athena-reactivate.log for later forensics.
+
+ -- Benjamin Kaduk <kaduk@mit.edu> Tue, 08 Nov 2011 21:19:39 -0500
+
debathena-reactivate (2.0.28) unstable; urgency=low
* No change rebuild to pick up config-package-dev 4.13 changes
Modified: trunk/debathena/config/reactivate/debian/reactivate
===================================================================
--- trunk/debathena/config/reactivate/debian/reactivate 2011-11-08 00:04:59 UTC (rev 25438)
+++ trunk/debathena/config/reactivate/debian/reactivate 2011-11-09 02:20:33 UTC (rev 25439)
@@ -7,6 +7,15 @@
# user processes or processes using the login snapshot, although
# that circumstance should be fairly rare.
+print_processes_info() {
+ echo "BEGIN PRINT_PROCESS_INFO"
+ pstree -alcnpu
+ ps eauxwww
+ schroot --list
+ LC_ALL=C lsof -b +c 0 -w
+ echo "END PRINT_PROCESS_INFO"
+}
+
set -e
exec >>/var/log/athena-reactivate 2>&1
@@ -23,12 +32,14 @@
if mountpoint -q "$i"; then
touch /var/run/reboot-required
echo "rebooting due to active mountpoint $i"
+ print_processes_info
break
fi
done
if [ -n "$USER" -a "$USER" != root ]; then
if pgrep -u "$USER"; then
echo "rebooting due to live user processes"
+ print_processes_info
touch /var/run/reboot-required
fi
fi