[torquedev] reverting 'hostname -f' change in torque.setup from September

Garrick Staples garrick at usc.edu
Thu Nov 29 10:37:41 MST 2007


I'm reverting this change because 'hostname -f' only works on GNU systems (it
will set the hostname to "-f" on other systems).  Even if that wasn't a
problem, it doesn't seem to make sense anyways.

------------------------------------------------------------------------
r1544 | bpendleton | 2007-09-05 13:45:14 -0700 (Wed, 05 Sep 2007) | 2 lines

Added check to try long hostname if short hostname fails when setting server operators.


Index: torque.setup
===================================================================
--- torque.setup        (revision 1544)
+++ torque.setup        (revision 1543)
@@ -30,18 +30,12 @@
 
 pbs_server -t create
 
-echo set server operators += $USER | qmgr -a  2> /dev/null
+echo set server operators += $USER | qmgr
 
 if [ "$?" -ne "0" ] ; then
-  USER=$1@`hostname -f`
-  echo set server operators += $USER | qmgr -a
-
-  if [ "$?" -ne "0" ] ; then
-    echo "ERROR: cannot set TORQUE admins"
-    qterm
-    exit 1;
-  fi
-
+  echo "ERROR: cannot set TORQUE admins"
+  qterm
+  exit 1;
 fi
 
 echo set server managers += $USER | qmgr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torquedev/attachments/20071129/b9dbb243/attachment.bin


More information about the torquedev mailing list