source: trunk/athena/etc/athinfod/debian/is_cluster @ 25089

Revision 25089, 348 bytes checked in by jdreed, 13 years ago (diff)
Don't run getcluster every time, that's why we have save-cluster-info
  • Property svn:executable set to *
Line 
1#!/bin/sh
2#
3# Determine whether this is a cluster machine or not by
4# exiting with 0 or 1, respectively
5
6CLUSTER=
7if [ -s /var/run/athena-clusterinfo.sh ]; then
8    . /var/run/athena-clusterinfo.sh
9fi
10
11if [ "$CLUSTER" = "cluster" ]; then
12   # Hesiod takes priority
13   exit 0
14elif machtype -vL | grep -q debathena-cluster; then
15    exit 0
16fi
17exit 1
Note: See TracBrowser for help on using the repository browser.