From fea89442a1f47556cfaf3f95f222b66659b99a4c Mon Sep 17 00:00:00 2001 From: Leigh B Stoller Date: Wed, 11 Apr 2012 08:42:02 -0600 Subject: [PATCH] Generate a compressed version of the statis advertisement. --- protogeni/scripts/ch_daemon.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/protogeni/scripts/ch_daemon.in b/protogeni/scripts/ch_daemon.in index 42a59bf2b..9db901351 100755 --- a/protogeni/scripts/ch_daemon.in +++ b/protogeni/scripts/ch_daemon.in @@ -1,7 +1,7 @@ #!/usr/bin/perl -w # # GENIPUBLIC-COPYRIGHT -# Copyright (c) 2008-2011 University of Utah and the Flux Group. +# Copyright (c) 2008-2012 University of Utah and the Flux Group. # All rights reserved. # use strict; @@ -190,6 +190,14 @@ sub ProbeCMs() print OUT "\n"; close(OUT); + # Make a comrpessed copy. + system("cat $ADDIR/$urn | gzip > $ADDIR/${urn}.gz"); + if ($?) { + notify("Could not compress $ADDIR/$urn\n"); + unlink("$ADDIR/${urn}.gz") + if (-e "$ADDIR/${urn}.gz"); + } + # Save the name so we can write the text file at the end. $ads{$urn} = $urn; } -- GitLab