Contents
Run Trac as Windows Service
Notice: This plugin is unmaintained and available for adoption.
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 TurboGears similar 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 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 bugs and feature requests for WindowsServiceScript.
If you have any issues, create a new ticket.
defect |
1 / 1 |
||
---|---|---|---|
enhancement |
1 / 2 |
Download
Download and install Mark Hammond's Python for Windows Extensions or download the zipped source.
Source
You can checkout WindowsServiceScript from here using Subversion, or browse the source with Trac
Installation
General instructions on installing Trac plugins can be found on the TracPlugins page.
Recent Changes
- 13691 by rjollos on 2014-02-20 02:01:38
-
Applied follow-on to [13672] from bwanamarko. Refs #11584.
- On L67 in
OPTS
each part ofauth
tuple should be enclosed in separate sets of quotes. - Forgot to add quotes around string
'log'
on L76. - Since using tuple for
auth
, inadd_auths()
on L81 remove L82 and change input argvals
toinfo
. base_path
never had any default, so set its default toNone
after L132.- Can't split
None
so move L162 intoif
block - These are non-POSIX paths, so don't need to strip forward slashes, only backslashes.
- On L67 in
- 13672 by rjollos on 2014-02-19 10:30:57
-
Applied Trac 1.0 compatibility patch. Fixes #11584. Patch by bwanamarko.
- 11990 by rjollos on 2012-09-13 09:23:30
-
Added source file that was attached to the project wiki page.
(more)
Author/Contributors
Author: flox
Maintainer: none (needsadoption)
Contributors: