From: Chris Koeritz Date: Fri, 29 Mar 2013 15:00:09 +0000 (-0400) Subject: example startup script, updated conf. X-Git-Tag: 2.140.90~1032 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=75571460ee09e61d46af0d65f63a8047aef215e6;p=feisty_meow.git example startup script, updated conf. --- 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 & +