[[PageOutline(2-5,Contents,pullout)]] = 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 the event log. This script design is inspired by [http://turbogears.org/ TurboGears] similar script. === Usage 1. Copy file to '\Python23\Scripts\'. 1. Edit CONSTANTS SECTION inside the script. 1. Install service: {{{ cd/d c:\python23\scripts ..\python tracservice.py install }}} 1. Run service: {{{ ..\python tracservice.py start }}} '''Vista/Windows 7:''' You must run these commands as administrator, else Trac will be unable to manage the service. === Comments Script + 0.10 patch works for a multi project setup on 0.11.3. Script + 0.10 patch also works for 0.11.7 using Python 2.6.5: {{{ 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 == Bugs/Feature Requests Existing [report:9?COMPONENT=WindowsServiceScript bugs and feature requests] for !WindowsServiceScript. If you have any issues, create a [/newticket?component=WindowsServiceScript new ticket]. [[TicketQuery(component=WindowsServiceScript&group=type,format=progress)]] == Download Download and install [http://sourceforge.net/projects/pywin32/ Mark Hammond's Python for Windows Extensions] or [export:windowsservicescript download] the zipped source. == Source You can checkout WindowsServiceScript from [/svn/windowsservicescript here] using Subversion, or [source:windowsservicescript browse the source] with Trac == Installation General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. == Recent Changes [[ChangeLog(windowsservicescript, 3)]] == Author/Contributors '''Author:''' [wiki:flox] [[BR]] '''Maintainer:''' [[Maintainer]] [[BR]] '''Contributors:'''