# HG changeset patch
# User Augie Fackler <durin42@gmail.com>
# Date 1233899008 21600
# Node ID ef5c69032d20ac2f3317123281cb022356f6fade
# Parent  94604a37503a2fd877a648067ad3944dabc2fc03
Multi-hg serving code I seem to use often.

diff --git a/.hgignore b/.hgignore
--- a/.hgignore
+++ b/.hgignore
@@ -1,4 +1,6 @@
 syntax:glob
+hgwebdir.conf
+*.pid
 *.pyc
 .*history
 .BitTornado
diff --git a/unixSoft/bin/servehg.sh b/unixSoft/bin/servehg.sh
new file mode 100755
--- /dev/null
+++ b/unixSoft/bin/servehg.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+PID_PATH=$HOME/unixSoft/hg.pid
+kill `cat $PID_PATH `
+sleep 1
+hg serve --prefix /hg/ --webdir-conf $HOME/unixSoft/etc/hgwebdir.conf -p 9000 --pid-file $PID_PATH --style monoblue -d --config web.contact=- --config web.description=-