Commit f609c891 authored by Leigh Stoller's avatar Leigh Stoller

Add environment variable BOSSNAME for alternate method of specifying

the BOSS node. Override other methods except command line.
parent 9cef83de
......@@ -355,6 +355,20 @@ getbossnode(char **bossnode, int *portp)
FILE *fp;
char buf[BUFSIZ], **cp = bossnodedirs, *bp;
if ((bp = getenv("BOSSNAME")) != NULL) {
strcpy(buf, bp);
/*
* Look for port spec
*/
if ((bp = strchr(buf, ':'))) {
*bp++ = (char) NULL;
*portp = atoi(bp);
}
*bossnode = strdup(buf);
return 0;
}
/*
* Search for the file.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment