= Run Trac as Windows Service = == Description == This a simple script to install and run Trac as Windows service. It supports Start and Stop command, and log messages to event log. This script design is inspired from [http://turbogears.org/ TurboGears] similar script. == Download == Download the script from [http://trac-hacks.org/attachment/wiki/WindowsServiceScript/tracservice.py?format=raw here (tracservice.py)], or [http://trac-hacks.org/attachment/wiki/WindowsServiceScript/tracservice.py view script]. == Usage == 1. Copy file to '\Python23\Scripts\' 2. Edit "CONSTANTS SECTION" inside the script 3. Install service: {{{ cd/d c:\python23\scripts ..\python tracservice.py install }}} 4. Run service {{{ ..\python tracservice.py start }}} == Recent Changes == [[ChangeLog(windowsservicescript, 3)]] == Author/Contributors == '''Author:''' [wiki:flox] [[BR]] '''Contributors:''' == Comments == Many thanks ! Script + 0.10 patch works for a multi project setup on 0.11.3. {{{ PYTHON = r'D:/trac/Python25/python.exe' INSTANCE_HOME = r'D:/trac' OPTS = [ ( '--auth', ('"*",D:/trac/users.txt,trac') ), ( '--port', '8000' ), ( '-e', 'D:/trac'), ] }}} and set single_env = False further down