summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/wsgi/wsgi-stop
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/modules/wsgi/wsgi-stop')
-rwxr-xr-xsca-cpp/trunk/modules/wsgi/wsgi-stop6
1 files changed, 5 insertions, 1 deletions
diff --git a/sca-cpp/trunk/modules/wsgi/wsgi-stop b/sca-cpp/trunk/modules/wsgi/wsgi-stop
index e47967e528..3d388ac313 100755
--- a/sca-cpp/trunk/modules/wsgi/wsgi-stop
+++ b/sca-cpp/trunk/modules/wsgi/wsgi-stop
@@ -25,4 +25,8 @@ port=$2
python_prefix=`cat $here/../python/python.prefix`
py="$python_prefix/bin/python composite.py $port"
-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
+