|
|
@ -47,25 +47,25 @@ case $ROLE in |
|
|
|
auto_update_hosts "${HOSTNAMES}" > /dev/null 2>&1 & |
|
|
|
|
|
|
|
# Start ssh server |
|
|
|
/usr/sbin/sshd -D |
|
|
|
#/usr/sbin/sshd -D |
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
"workerservice") |
|
|
|
|
|
|
|
# Start ssh server in background |
|
|
|
/usr/sbin/sshd -D & |
|
|
|
#/usr/sbin/sshd -D & |
|
|
|
|
|
|
|
# Keep trying to connect to master node and stay there indefinitely so that master node can see |
|
|
|
# the connected hosts that are ready for MPI work |
|
|
|
while sleep 1 |
|
|
|
do |
|
|
|
#while sleep 1 |
|
|
|
#do |
|
|
|
# shellcheck disable=SC2086 |
|
|
|
ssh -T -o "StrictHostKeyChecking no" \ |
|
|
|
-i "${USER_HOME}/.ssh/id_rsa" \ |
|
|
|
${USER}@${MPI_MASTER_SERVICE_NAME} \ |
|
|
|
# ssh -T -o "StrictHostKeyChecking no" \ |
|
|
|
# -i "${USER_HOME}/.ssh/id_rsa" \ |
|
|
|
# ${USER}@${MPI_MASTER_SERVICE_NAME} \ |
|
|
|
"tail -f /dev/null" |
|
|
|
done |
|
|
|
#done |
|
|
|
;; |
|
|
|
*) |
|
|
|
echo 'role argument only accepts "masterservice" or "workerservice"' |
|
|
|