make sure that the apache.pid file will be deleted at stop file
[mkws-moved-to-github.git] / test / Makefile
index b89b4e1..2bb32dd 100644 (file)
@@ -85,7 +85,7 @@ node_modules node-modules:
 apache-start:
        bin/apache-template-update
        ${APACHE_HTTPD} -f `pwd`/${TMP_DIR}/jasmine-dev
-       
+
 apache-stop:
        @-if [ -e ${TMP_DIR}/mkws-jasmine.pid ]; then \
           kill `cat ${TMP_DIR}/mkws-jasmine.pid`; \
@@ -93,6 +93,7 @@ apache-stop:
           killall apache2 2> /dev/null; \
        fi
        @sleep 0.3
+       rm -f ${TMP_DIR}/mkws-jasmine.pid
 
 help:
        @echo "make [ all | check | clean | distclean ]"