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 TurboGears similar script.
Bugs/Feature Requests
Existing bugs and feature requests for WindowsServiceScript.
If you have any issues, create a new ticket.
Source & Download
Download and install Mark Hammond's Python for Windows Extensions.
You can checkout WindowsServiceScript using Subversion, or browse the source with Trac, or download the zipped source.
Download the script from , or view script.
Usage
- Copy file to '\Python23\Scripts\'
- Edit CONSTANTS SECTION inside the script
- Install service:
cd/d c:\python23\scripts ..\python tracservice.py install
- Run service
..\python tracservice.py start
Vista/Windows 7: You must run as administrator, or tracservice will be unable to manage the service.
Recent Changes
[11990] by rjollos on 09/13/12 11:23:30
Added source file that was attached to the project wiki page.
[1136] by flox on 08/17/06 22:02:31
New hack WindowsServiceScript, created by flox
Author/Contributors
Author: flox
Maintainer: none
Contributors:
Comments
Many thanks ! 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 from http://www.python.org/.
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
Attachments
- tracservice.py.patch.txt (1.3 kB) -
diff file to make it work with trac 0.10
, added by evalder on 10/17/06 06:50:58.

