diff options
Diffstat (limited to 'overlay/sys-cluster/beowulf-head/files/torque-add')
-rwxr-xr-x | overlay/sys-cluster/beowulf-head/files/torque-add | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/overlay/sys-cluster/beowulf-head/files/torque-add b/overlay/sys-cluster/beowulf-head/files/torque-add index 0e7e6ef..89917a1 100755 --- a/overlay/sys-cluster/beowulf-head/files/torque-add +++ b/overlay/sys-cluster/beowulf-head/files/torque-add @@ -7,6 +7,8 @@ CLUSTER_CONF=%%CONFPATH/%%CONFIG_FILE touch $NODES # $4 == hostname $5 == number of procs +# we use the one from CLUSTER_CONF if +# $5 is empty grep -v $4 $NODES > $NODES.$$ if [[ -z "$5" && -z $NODENP ]]; then @@ -16,7 +18,10 @@ elif [[ ! -z $5 ]]; then else echo $4 np=$NODENP >> $NODES.$$ fi + cat $NODES.$$ | sort -g | uniq | egrep -v "(^$|^\W$)" > $NODES. mv $NODES. $NODES rm -f $NODES.$$ +# there is no other way to tell Torque the nodes file changed... +/etc/init.d/pbs_server restart |