Edgewall Software

Changes between Version 65 and Version 66 of TracStandalone


Ignore:
Timestamp:
Mar 13, 2009, 8:53:05 PM (15 years ago)
Author:
anonymous
Comment:

Clarification on Windows service

Legend:

Unmodified
Added
Removed
Modified
  • TracStandalone

    v65 v66  
    4040To exit the server on Windows, be sure to use {{{CTRL-BREAK}}} -- using {{{CTRL-C}}} will leave a Python process running in the background.
    4141
    42 When running as a Windows service using a utility such as [http://www.google.com/search?q=srvany.exe SRVANY], stopping or restarting the service will also leave a Python process running.  To end it, '''along with all other python processes currently running''', open a console and enter:
     42To install as a Windows service, get the [http://www.google.com/search?q=srvany.exe SRVANY] utility and run:
    4343{{{
    44  taskkill /f /im python.exe
     44 C:\path\to\instsrv.exe tracd C:\path\to\srvany.exe
     45 reg add HKLM\SYSTEM\CurrentControlSet\Services\tracd\Parameters /v Application /d "\"C:\path\to\python.exe\" \"C:\path\to\python\scripts\tracd-script.py\" <your tracd parameters>"
     46 net start tracd
    4547}}}
     48
     49'''DO NOT''' use {{{tracd.exe}}}.  Instead register {{{python.exe}}} directly with {{{tracd-script.py}}} as a parameter.  If you use {{{tracd.exe}}}, it will spawn the python process without SRVANY's knowledge which process will survive a {{{net stop tracd}}}.
    4650
    4751== Using Authentication ==