Use localhost as default master to allow host lookup
This commit is contained in:
parent
1d1bf88bd6
commit
1cd20da9b6
|
@ -295,7 +295,7 @@ main() { # {{{
|
|||
### If sge_master_uri wasn't defined (environment variable,…) {{{
|
||||
if [ -z "${sge_master_uri}" ]; then
|
||||
## Get SGE master from current configuration
|
||||
sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "NO MASTER")
|
||||
sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "localhost")
|
||||
fi
|
||||
### }}}
|
||||
### If sge_master_port wasn't defined (environment variable,…) {{{
|
||||
|
|
|
@ -231,7 +231,7 @@ main() { # {{{
|
|||
### If sge_master_uri wasn't defined (environment variable,…) {{{
|
||||
if [ -z "${sge_master_uri}" ]; then
|
||||
## Get SGE master from current configuration
|
||||
sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "NO MASTER")
|
||||
sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "localhost")
|
||||
fi
|
||||
### }}}
|
||||
### If sge_master_port wasn't defined (environment variable,…) {{{
|
||||
|
|
|
@ -292,7 +292,7 @@ main() { # {{{
|
|||
### If sge_master_uri wasn't defined (environment variable,…) {{{
|
||||
if [ -z "${sge_master_uri}" ]; then
|
||||
## Get SGE master from current configuration
|
||||
sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "NO MASTER")
|
||||
sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "localhost")
|
||||
fi
|
||||
### }}}
|
||||
### If sge_master_port wasn't defined (environment variable,…) {{{
|
||||
|
|
|
@ -296,7 +296,7 @@ main() { # {{{
|
|||
### If sge_master_uri wasn't defined (environment variable,…) {{{
|
||||
if [ -z "${sge_master_uri}" ]; then
|
||||
## Get SGE master from current configuration
|
||||
sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "NO MASTER")
|
||||
sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "localhost")
|
||||
fi
|
||||
### }}}
|
||||
### If sge_master_port wasn't defined (environment variable,…) {{{
|
||||
|
|
|
@ -252,7 +252,7 @@ main() { # {{{
|
|||
### If sge_master_uri wasn't defined (environment variable,…) {{{
|
||||
if [ -z "${sge_master_uri}" ]; then
|
||||
## Get SGE master from current configuration
|
||||
sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "NO MASTER")
|
||||
sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "localhost")
|
||||
fi
|
||||
### }}}
|
||||
### If sge_master_port wasn't defined (environment variable,…) {{{
|
||||
|
|
|
@ -525,7 +525,7 @@ main() { # {{{
|
|||
### If sge_master_uri wasn't defined (environment variable,…) {{{
|
||||
if [ -z "${sge_master_uri}" ]; then
|
||||
## Get SGE master from current configuration
|
||||
sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "NO MASTER")
|
||||
sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "localhost")
|
||||
fi
|
||||
### }}}
|
||||
### If sge_master_port wasn't defined (environment variable,…) {{{
|
||||
|
|
Loading…
Reference in New Issue