Skip to content

Commit 0abc891

Browse files
committed
automatically delete/create node with correct info
1 parent 4ed0854 commit 0abc891

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

image/docker-entrypoint.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ then
7777
done
7878
echo "-- slurmctld is now active ..."
7979

80-
echo "---> Adding myself to node definitions ..."
81-
SLURMD_CONFIG=$(slurmd -C | head --lines 1)
82-
echo ${SLURMD_CONFIG}
83-
scontrol create ${SLURMD_CONFIG} State=FUTURE
80+
echo "---> Updating node definitions ..."
81+
scontrol delete node=$HOSTNAME
82+
scontrol create $(slurmd -C | head -n1) State=FUTURE
8483

8584
echo "---> Starting the Slurm Node Daemon (slurmd) ..."
8685
exec /usr/sbin/slurmd -D "${@:2}"

0 commit comments

Comments
 (0)