Sunday, July 04, 2010

How run Trac as service

Run Trac as service
ref http://trac.edgewall.org/wiki/TracOnWindowsStandalone

1.download Windows Server 2003 Resource Kits
2.C:\Program Files\Windows Resource Kits\Tools>instsrv.exe
"C:\Program Files\Windows Resource
Kits\Tools\srvany.exe"
3.open HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
in RegEdit
4.create subkey *Parameters*, below which you will create 2 string values:
5.create string value *Application* with the full path to python.exe
6.create string value *AppParameters* with the set of desired tracd
parameters, e.g. "c:\Python26\Scripts\tracd-script.py --port 8080
c:\path\to\trac" (without the quotes)
7.open the Services tool (somewhere in the administrative tools in the
Windows control panel) and start your service



delete trac service
1.open the Services tool ,stop
2.in cmd run "sc delete "

No comments:

Post a Comment

これがiPhoneクオリティ!