wiki:WindowsServiceScript

Version 1 (modified by Florent, 18 years ago) (diff)

New hack WindowsServiceScript, created by flox

Run Trac as Windows Service

Notice: This plugin is unmaintained and available for adoption.

Description

This a simple script to intall 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 are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:windowsservicescript here].

Source

You can check out WindowsServiceScript from here using Subversion, or browse the source with Trac.

Example

  1. Copy file to 'C:\Python23\Scripts\'
  2. Edit "CONSTANTS SECTION" inside the script
  3. Install service:

cd/d c:\python23\scripts ..\python tracservice.py install

  1. Run service

..\python tracservice.py start

Recent Changes

13691 by rjollos on 2014-02-20 02:01:38

Applied follow-on to [13672] from bwanamarko. Refs #11584.

  1. On L67 in OPTS each part of auth tuple should be enclosed in separate sets of quotes.
  2. Forgot to add quotes around string 'log' on L76.
  3. Since using tuple for auth, in add_auths() on L81 remove L82 and change input arg vals to info.
  4. base_path never had any default, so set its default to None after L132.
  5. Can't split None so move L162 into if block
  6. These are non-POSIX paths, so don't need to strip forward slashes, only backslashes.
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
Contributors: