X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=blobdiff_plain;f=stop;h=42571c503ae99ce70f3b4535cc149bf1b0d5e4e5;hp=89b1111ce77db2189330df39ca381767f06cecb4;hb=9512e38a375111d6ecbdc720c16cbc053017cdfc;hpb=6289867279abad7ddbb1d1e782018191ab759bb3 diff --git a/stop b/stop index 89b1111..42571c5 100755 --- a/stop +++ b/stop @@ -1,2 +1,6 @@ #!/bin/bash +PID=`/usr/bin/python server.py getpid` /usr/bin/python server.py stop +echo "Waiting until process $PID terminates..." +while ps -p $PID > /dev/null; do sleep 1; done +echo "Done."