|
|
@ -1,8 +1,8 @@ |
|
|
|
#!/bin/sh |
|
|
|
|
|
|
|
ROLE="undefined" |
|
|
|
MPI_MASTER_SERVICE_NAME="sec_master" |
|
|
|
MPI_WORKER_SERVICE_NAME="sec_worker" |
|
|
|
MPI_MASTER_SERVICE_NAME="sec_masterservice" |
|
|
|
MPI_WORKER_SERVICE_NAME="sec_workerservice" |
|
|
|
HOSTNAMES="/etc/nethosts" |
|
|
|
|
|
|
|
####################### |
|
|
@ -41,7 +41,7 @@ MPI_WORKER_SERVICE_NAME=${MPI_WORKER_SERVICE_NAME} |
|
|
|
EOF |
|
|
|
|
|
|
|
case $ROLE in |
|
|
|
"master") |
|
|
|
"masterservice") |
|
|
|
|
|
|
|
# Auto update default host file in background and dumb all output |
|
|
|
auto_update_hosts "${HOSTNAMES}" > /dev/null 2>&1 & |
|
|
@ -51,7 +51,7 @@ case $ROLE in |
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
"worker") |
|
|
|
"workerservice") |
|
|
|
|
|
|
|
# Start ssh server in background |
|
|
|
/usr/sbin/sshd -D & |
|
|
@ -68,5 +68,5 @@ case $ROLE in |
|
|
|
done |
|
|
|
;; |
|
|
|
*) |
|
|
|
echo 'role argument only accepts "master" or "worker"' |
|
|
|
echo 'role argument only accepts "masterservice" or "workerservice"' |
|
|
|
esac |
|
|
|