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
*
|
Rev | Line | |
---|
[25057] | 1 | #!/bin/sh |
---|
| 2 | # |
---|
| 3 | # Determine whether this is a cluster machine or not by |
---|
| 4 | # exiting with 0 or 1, respectively |
---|
| 5 | |
---|
| 6 | CLUSTER= |
---|
[25089] | 7 | if [ -s /var/run/athena-clusterinfo.sh ]; then |
---|
| 8 | . /var/run/athena-clusterinfo.sh |
---|
| 9 | fi |
---|
[25057] | 10 | |
---|
| 11 | if [ "$CLUSTER" = "cluster" ]; then |
---|
| 12 | # Hesiod takes priority |
---|
| 13 | exit 0 |
---|
| 14 | elif machtype -vL | grep -q debathena-cluster; then |
---|
| 15 | exit 0 |
---|
| 16 | fi |
---|
| 17 | exit 1 |
---|
Note: See
TracBrowser
for help on using the repository browser.