We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ed0854 commit 334805dCopy full SHA for 334805d
image/docker-entrypoint.sh
@@ -77,10 +77,12 @@ then
77
done
78
echo "-- slurmctld is now active ..."
79
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
+ echo "---> Updating node definitions ..."
+ SCONTROL_NODE=$(scontrol show node=$HOSTNAME)
+ if [[ $? == 0 ]]; then # have an existing node definition
+ scontrol delete node=$HOSTNAME
84
+ fi
85
+ scontrol create $(slurmd -C | head -n1) State=FUTURE
86
87
echo "---> Starting the Slurm Node Daemon (slurmd) ..."
88
exec /usr/sbin/slurmd -D "${@:2}"
0 commit comments