[25398] in Source-Commits

home help back first fref pref prev next nref lref last post

Re: /svn/athena r24949 - in trunk/debathena/config: . athinfod-cluster-config

daemon@ATHENA.MIT.EDU (Benjamin Kaduk)
Mon Feb 14 12:51:15 2011

Date: Mon, 14 Feb 2011 12:51:05 -0500 (EST)
From: Benjamin Kaduk <kaduk@MIT.EDU>
To: Jonathan D Reed <jdreed@MIT.EDU>
cc: source-commits@MIT.EDU
In-Reply-To: <201102141740.p1EHeheH015718@drugstore.mit.edu>
Message-ID: <alpine.GSO.1.10.1102141246400.2296@multics.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII

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.

I guess I get to look in the athinfod history to see why in-use doesn't 
use machtype -v?

-Ben

> +EOF
> +    exit 0;

home help back first fref pref prev next nref lref last post