Skip to content

Commit 5396e24

Browse files
committed
run remote script using 'nohup'
use 'nohup' and redirect stdout and stderr
1 parent 8015f2f commit 5396e24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/setup-zht-plus-aws.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ done
3838
# Start ZHT server at remote node
3939
for i in $IP_LIST; do
4040
echo "connect to $i and start zhtserver"
41-
parallel-ssh -H $i -x "-oStrictHostKeyChecking=no -i $PRIVATE_KEY" ./start-server.sh&
41+
parallel-ssh -H $i -x "-oStrictHostKeyChecking=no -i $PRIVATE_KEY" "nohup ./start-server.sh > log.out 2> log.err < /dev/null &"
4242
done

0 commit comments

Comments
 (0)