Schmalls » Blog » 2009 » October 2009 » Install Trac As A Windows Service

Install Trac As A Windows Service

What follows is a how-to for installing Trac as a Windows service. The benefit of this is being able to log off of the server machine without stopping the tracd server.

The bulk of the information used to figure this out come from Microsoft's How To Create a User-Defined Service and a guide for Windows NT Tcl/Tk Server Installation.

The steps are actually pretty simple:

  1. Run the following command (after making the appropriate path replacements):
    C:\Program Files\Resource Kit\Instsrv.exe Tracd C:\Program Files\Resource Kit\Srvany.exe
  2. Run regedit.
    1. Add a new key: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tracd\Parameters]
    2. Add the following string values:
      1. Application with the path to the tracd executable.
      2. AppParameters with the parameters you use to run tracd.
      3. AppDirectory with the path to the directory which contains the tracd executable.
  3. Open the Services panel.
    1. Set the new Tracd service to automatic.
    2. Start the Tracd service.

Now you should be able to log out and still access the Trac server.

Discussion

Enter your comment
QPVAK
 
blog/2009/10/install-trac-as-a-windows-service.txt · Last modified: 2009-10-01 20:09 by Josh Thompson