source: trunk/debathena/debathena/clusterinfo/debian/save-cluster-info @ 23130

Revision 23130, 401 bytes checked in by ghudson, 16 years ago (diff)
Add a new package debathena-clusterinfo to cache Hesiod cluster info for cluster machines.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2# Get cluster information from Hesiod and save it.
3
4base=/var/run/athena-clusterinfo
5ver=10
6
7getcluster -b $ver > $base.sh.new
8if [ $? -eq 0 -a -s $base.sh.new ]; then
9  chmod 644 $base.sh.new
10  rm -f $base.sh
11  mv $base.sh.new $base.sh
12fi
13
14getcluster $ver > $base.csh.new
15if [ $? -eq 0 -a -s $base.csh.new ]; then
16  chmod 644 $base.csh.new
17  rm -f $base.csh
18  mv $base.csh.new $base.csh
19fi
Note: See TracBrowser for help on using the repository browser.