summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/wsgi/gae-stop
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/modules/wsgi/gae-stop')
-rwxr-xr-xsca-cpp/trunk/modules/wsgi/gae-stop6
1 files changed, 5 insertions, 1 deletions
diff --git a/sca-cpp/trunk/modules/wsgi/gae-stop b/sca-cpp/trunk/modules/wsgi/gae-stop
index c0ff29cfaa..5bb2965515 100755
--- a/sca-cpp/trunk/modules/wsgi/gae-stop
+++ b/sca-cpp/trunk/modules/wsgi/gae-stop
@@ -26,4 +26,8 @@ python_prefix=`cat $here/../python/python.prefix`
gae_prefix=`cat $here/gae.prefix`
py="$python_prefix/bin/python $gae_prefix/dev_appserver.py -a 0.0.0.0 -p $port $root"
-kill `ps -ef | grep -v grep | grep "${py}" | awk '{ print $2 }'`
+k=`ps -ef | grep -v grep | grep "${py}" | awk '{ print $2 }'`
+if [ "$k" != "" ]; then
+ kill $k
+fi
+