[26177] in Source-Commits
Re: /svn/athena r25439 - trunk/debathena/config/reactivate/debian
daemon@ATHENA.MIT.EDU (Jonathan Reed)
Thu Nov 10 18:43:50 2011
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Jonathan Reed <jdreed@MIT.EDU>
In-Reply-To: <201111090220.pA92KY0v025158@drugstore.mit.edu>
Date: Thu, 10 Nov 2011 18:43:47 -0500
Cc: source-commits@MIT.EDU
Message-Id: <0259E397-53DC-4CA2-9AD8-1733FBA3CF3C@mit.edu>
To: Benjamin Kaduk <kaduk@MIT.EDU>
Content-Transfer-Encoding: 8bit
ACK.
On Nov 8, 2011, at 9:20 PM, Benjamin Kaduk wrote:
> 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
>