example startup script, updated conf.
authorChris Koeritz <fred@gruntose.com>
Fri, 29 Mar 2013 15:00:09 +0000 (11:00 -0400)
committerChris Koeritz <fred@gruntose.com>
Fri, 29 Mar 2013 15:00:09 +0000 (11:00 -0400)
database/configuration/stunnel/etc/stunnel/stunnel.conf
database/configuration/trac/trac_startup.sh [new file with mode: 0644]

index dfcd81b098ad3851f8021e6ca39b6c0524109bc6..ed8de2fb14e33b75fcd33bdfc52a90f515d58fff 100644 (file)
@@ -67,7 +67,9 @@ output = stunnel.log
 ; vim:ft=dosini
 
 [tracd]
+; port offering ssl trac visibility to the web.
 accept = 8042
-connect = localhost:8000
+; port on localhost for service.
+connect = localhost:10042
 
 
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 &
+