Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'bg/apply-doc'
[gitweb.git]
/
git-instaweb.sh
diff --git
a/git-instaweb.sh
b/git-instaweb.sh
index 622a5f0eb25e3420c085d51fd85944ab1286147e..ffc2ab62bca8a93b42d74f6b276b1daa8a846f6f 100755
(executable)
--- a/
git-instaweb.sh
+++ b/
git-instaweb.sh
@@
-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