Merge branch 'ls/maint-mailinfo-no-inbody' into maint
[gitweb.git] / git-instaweb.sh
index d96eddbe56783d61304941a134361797c82480e7..80a7f74feabf7e8c7a72e1e2e6c2f233e7ba5d7c 100755 (executable)
@@ -73,6 +73,11 @@ resolve_full_httpd () {
 }
 
 start_httpd () {
+       if test -f "$fqgitdir/pid"; then
+               say "Instance already running. Restarting..."
+               stop_httpd
+       fi
+
        # here $httpd should have a meaningful value
        resolve_full_httpd