X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=blobdiff_plain;f=stop;fp=stop;h=42571c503ae99ce70f3b4535cc149bf1b0d5e4e5;hp=89b1111ce77db2189330df39ca381767f06cecb4;hb=23f11bedcccb15233563f936b85fdfa5505ee920;hpb=b781bb56313255e668fffe45a09ed330a9887c13 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."