From 75571460ee09e61d46af0d65f63a8047aef215e6 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Fri, 29 Mar 2013 11:00:09 -0400 Subject: [PATCH] example startup script, updated conf. --- .../stunnel/etc/stunnel/stunnel.conf | 4 +++- database/configuration/trac/trac_startup.sh | 21 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 database/configuration/trac/trac_startup.sh diff --git a/database/configuration/stunnel/etc/stunnel/stunnel.conf b/database/configuration/stunnel/etc/stunnel/stunnel.conf index dfcd81b0..ed8de2fb 100644 --- a/database/configuration/stunnel/etc/stunnel/stunnel.conf +++ b/database/configuration/stunnel/etc/stunnel/stunnel.conf @@ -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 index 00000000..87c5668c --- /dev/null +++ b/database/configuration/trac/trac_startup.sh @@ -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 & + -- 2.34.1