Edgewall Software

Changes between Version 36 and Version 37 of TracOnWindowsStandalone


Ignore:
Timestamp:
Oct 4, 2010, 12:36:40 PM (14 years ago)
Author:
Christian Boos
Comment:

oops, shouldn't use tracd.exe directly, as mentioned in TracStandalone#InstallingasaWindowsService, and we should somehow consolidate the two versions

Legend:

Unmodified
Added
Removed
Modified
  • TracOnWindowsStandalone

    v36 v37  
    6363
    6464== Running Tracd as service ==
    65 ''Instructions also valid for 0.11, 0.12 and newer (see #7496)''
     65
     66See also TracStandalone#InstallingasaWindowsService and #7496.
     67
     68=== Using `instsrv`/`srvany`
    6669 * download the Windows Server 2003 Resource Kit at [http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en Microsoft]
    67  * run `!InstSrv <servicename> c:\path\to\resourcekit\!SrvAny.exe`, where you insert your own service name (without angle brackets, e.g. tracd) and the full path to the `SrvAny.exe`.
     70 * run `InstSrv <servicename> c:\path\to\resourcekit\SrvAny.exe`, where you insert your own service name (without angle brackets, e.g. ''tracd'') and the full path to the `SrvAny.exe`.
    6871 * open **HKEY_LOCAL_MACHINE\SYSTEM\!CurrentControlSet\Services\<servicename>** in !RegEdit
    6972 * create subkey **Parameters**, below which you will create 2 string values:
    7073  * create string value **Application** with the full path to `python.exe`
    7174  * create string value **!AppParameters** with the set of desired tracd parameters, e.g. `c:\Python25\Scripts\tracd-script.py --port 8080 c:\path\to\trac"`
    72  * open the Services tool (somewhere in the administrative tools in the Windows control panel) and start your service
     75 * open the Services tool (somewhere in the administrative tools in the Windows control panel) and start your service, or run `net start tracd`
    7376
    74 (tested with trac 0.11.2 on Windows XP)
     77''(tested with trac 0.11.2 on Windows XP, Windows 7)''
    7578
     79=== Using !FireDaemon
    7680You can also use [http://www.firedaemon.com FireDaemon] although there is no longer a free version available (FireDaemon Lite having been discontinued). No need to open the registry, FireDaemon GUI allows you to add parameters to your service command line. (tested with trac 0.11.2 on Windows Vista)
    7781
    78 ''Instructions for Windows 7''
    79  * Download `instsrv.exe` and `srvany.exe` from Microsoft
    80  * `drive:\path\to\InstSrv.exe tracd drive:\path\to\SrvAny.exe`
    81  * open **HKEY_LOCAL_MACHINE\SYSTEM\!CurrentControlSet\Services\tracd** in !RegEdit
    82  * create subkey **Parameters**, below which you will create 2 string values:
    83    * create string value **Application** - `drive:\path\to\tracd.exe`
    84    * create string value **!AppParameters** with the set of desired tracd parameters, e.g. `--port 8080 --auth=proj_name,drive:\path\to\proj\digest.txt,trac drive:\path\to\proj\`
    85  * Run `net start tracd`
     82=== Using `nssm`
    8683
    87 ''Instructions for Windows 2008, using nssm (works with other Windows versions, e.g. Windows XP sp2 x64)''
    88  * download and extract nssm from http://iain.cx/src/nssm/
     84 * download and extract `nssm` from http://iain.cx/src/nssm/
    8985 * run 'nssm install tracd'
    90  * enter complete path to python.exe in Application field
    91    - example 1: `c:\Python26\python.exe`
    92    - example 2: `C:\Python27\Scripts\tracd.exe`
    93  * enter parameters in Options field
    94    - example 1: `c:\Python26\Scripts\tracd-script.py --port 8000 --basic-auth "*,c:\trac\.htpasswd,test" c:\trac\test`
    95    - example 2: `-p 8000 --basic-auth "*,c:\trac\.htpasswd,test" c:\trac\test`
     86 * enter complete path to python.exe in Application field (e.g. `c:\Python26\python.exe`)
     87 * enter parameters in Options field (e.g. `c:\Python26\Scripts\tracd-script.py --port 8000 --basic-auth "*,c:\trac\.htpasswd,test" c:\trac\test`)
    9688 * run 'net start tracd'
     89
     90''(tested with Windows 2008, Windows XP sp2 x64)''
    9791 
    9892If you'd like to review or change those parameters later on, refer to the same registry keys as mentioned above (`srvany` and `nssm` use the same).
     93
     94Tip: don't try to be smart and use `...\Scripts\tracd.exe` instead of `...\python.exe`: if you do this, as tracd.exe starts a new python process, the server will survive a service stop.
    9995
    10096== Using Trac (and Subversion) ==
     
    104100Keep in mind that anonymous (not logged in) users can by default access most but not all of the features. You will need to configure authentication and grant additional [wiki:TracPermissions permissions] to authenticated users to see the full set of features.
    105101
    106 ''Enjoy!''
     102'' Enjoy! ''
    107103
    108104