example startup script, updated conf.
[feisty_meow.git] / database / configuration / trac / trac_startup.sh
diff --git a/database/configuration/trac/trac_startup.sh b/database/configuration/trac/trac_startup.sh
new file mode 100644 (file)
index 0000000..87c5668
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/bash
+#
+# Runs the trac server startup if it's not already going.
+# This is a lighter-weight solution than adding trac to init scripts,
+# and it can be run as a normal user with the trac repository in their
+# home directory.
+#
+# Author: Chris Koeritz
+
+source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
+
+# we only try to do something if trac is missing.
+if [ "$(psfind tracd)" ]; then
+  exit 0
+fi
+
+#...adjust this for where you have your repository.
+# this configuration also assumes that stunnel is routing the non-ssl trac
+# service to the web; the below does not make trac visible off-machine.
+tracd -s --hostname=localhost -p 7000 --basic-auth="MyTracSite,/home/trac/trac_sites/authFile," /home/trac/trac_sites/MyTracSite &
+