From e006cf04bbe5fa362578e239b966a649d154fe5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Pievil=C3=A4inen?= Date: Wed, 21 Nov 2012 14:01:37 +0200 Subject: [PATCH] Kill SimpleHTTPServer also on OS X --- pelican/tools/templates/develop_server.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/tools/templates/develop_server.sh.in b/pelican/tools/templates/develop_server.sh.in index 3e97610b..41764728 100755 --- a/pelican/tools/templates/develop_server.sh.in +++ b/pelican/tools/templates/develop_server.sh.in @@ -30,7 +30,7 @@ function shut_down(){ if [[ -f $$SRV_PID ]]; then PID=$$(cat $$SRV_PID) PROCESS=$$(ps -p $$PID | tail -n 1 | awk '{print $$4}') - if [[ $$PROCESS == python ]]; then + if [[ $$PROCESS != "" ]]; then echo "Killing SimpleHTTPServer" kill $$PID else