[25399] in Source-Commits
Re: /svn/athena r24949 - in trunk/debathena/config: . athinfod-cluster-config athinfod-cluster-config/debian
daemon@ATHENA.MIT.EDU (Jonathan Reed)
Mon Feb 14 13:01:36 2011
Mime-Version: 1.0 (Apple Message framework v1082)
Content-Type: text/plain; charset=us-ascii
From: Jonathan Reed <jdreed@MIT.EDU>
In-Reply-To: <alpine.GSO.1.10.1102141246400.2296@multics.mit.edu>
Date: Mon, 14 Feb 2011 13:01:28 -0500
Cc: source-commits@MIT.EDU
Message-Id: <A4F42071-111F-4CAD-9A6A-5F0572F2A10D@MIT.EDU>
To: Benjamin Kaduk <kaduk@MIT.EDU>
Content-Transfer-Encoding: 8bit
On Feb 14, 2011, at 12:51 PM, Benjamin Kaduk wrote:
> On Mon, 14 Feb 2011, Jonathan D Reed wrote:
>
>> Author: jdreed
>> Date: 2011-02-14 12:40:43 -0500 (Mon, 14 Feb 2011)
>> New Revision: 24949
>>
>> Added: trunk/debathena/config/athinfod-cluster-config/debian/transform_athinfo.defs.debathena
>> ===================================================================
>> --- trunk/debathena/config/athinfod-cluster-config/debian/transform_athinfo.defs.debathena (rev 0)
>> +++ trunk/debathena/config/athinfod-cluster-config/debian/transform_athinfo.defs.debathena 2011-02-14 17:40:43 UTC (rev 24949)
>> @@ -0,0 +1,12 @@
>> +#!/usr/bin/perl -p0
>> +print;
>> +print <<EOF;
>> +
>> +# Added by debathena-athinfod-cluster-config
>> +update.log machtype -v -L | grep -q "debathena-cluster" && test -r /var/log/athena-update && cat /var/log/athena-update
>> +reactivate.log machtype -v -L | grep -q "debathena-cluster" && test -r /var/log/athena-reactivate && cat /var/log/athena-reactivate
>> +update-status machtype -v -L | grep -q "debathena-cluster" && test -r /var/lib/athena-update-status && cat /var/lib/athena-update-status
>> +in-use machtype -L | grep -q "debathena-cluster" && (test `pgrep -c larvnet-wrapper` -gt 0 && echo "yes" || echo "no") || echo "n/a"
>> +update-schedule machtype -v -L | grep -q "debathena-cluster" && test -r /etc/cron.d/debathena-auto-update && cat /etc/cron.d/debathena-auto-update
>
> The pedant in me wants to anchor the grep with ^ and $ -- while having debathena-cluster-login-config and not debathena-cluster is kind of silly, it doesn't mean we should necessarily expose this information.
Point, but that's firmly in the "Don't do that" category.
> I guess I get to look in the athinfod history to see why in-use doesn't use machtype -v?
"-v" means "verbose". Somwhere along the line, it was decided that "verbose" for the "-L" query means "Show all installed metapackages". I... have no idea why this was a good idea. If debathena-cluster is installed, yet "machtype -L" returns something else, the machine is already horribly broken.
-Jon