Thanks Mark!

One more question, maybe you ore some other can help me!

As a Linux guru I have not so good Windows services/registry knowledge

The registry for the TRAC  "AppParameters" is including the path to
the TRAC repos path.
and if you have several TRAC repos on same server you shall add thees
path to like

On the Linux it will be like
==
     /usr/bin/tracd --port 80 -d --auto-reload --pidfile=/var/run/tracd.pid\
        --auth trac_tools,/svnbase/trac_tools/conf/htdigest_file,tools \
        --auth trac_app,/svnbase/trac_app/conf/htdigest_file,app \
        --auth trac_3rdParty,/svnbase/trac_3rdParty/conf/htdigest_file,3rdParty
\
        /svnbase/trac_tools /svnbase/trac_app /svnbase/trac_3rdParty
==

On Windows
==
"AppParameters"="C:\\Python26\\Scripts\\tracd-script.py -p 80
--auth=\"trac_tools\",E:\\trac_repository\\trac_tools\\conf\\htdigest_file,bae_tools
--auth=\"trac_app\",E:\\trac_repository\\trac_app\\conf\\htdigest_file,bae_app
E:\\trac_repository\\trac_tools E:\\trac_repository\\trac_app ....etc
..."
==

This registry settings can be quite large and it always a risk to edit
registry settings.

What I will do instead of  edit registry settings is to edit a config
file that will be parsed when the services is started

Like

"AppParameters"="C:\\Python26\\Scripts\\tracd-script.py
C:\\Python26\\Scripts\\tracd-config.txt"

or

"AppParameters"="C:\\Python26\\Scripts\\tracd-start-config.py"

The "tracd-start-config.py" have all config information in it or parse
the "tracd-config.txt"

Yes! That will be a python script.
Unfortunately, I have lack of knowlage of python scripting :-(

Can some one help me?

TEW


2010/5/10 Cooke, Mark <[email protected]>:
>> Hi!
>>
>> Is there some one can helping me!
>>
> Yes
>
>> I have several TRAC projects that is running today on Linux
>> Now we must move it to Winodws 2008 Server..... IT department require
>> that! :-(
>>
> Sounds familiar
>
>> Is there a good example to start trscd as a services with several
>> project/repos?
>>
> Do you have specific reasons for using tracd instead of apache?  The
> latter takes a bit more effort but may well have advantages in a
> corporate environment.
>
> The main info you want is at:
> http://trac.edgewall.org/wiki/TracOnWindowsStandalone
>
> ...and, here are notes I made when I originally got tracd running:
>
> Running tracd as a Windoze Service
> ==================================
> Trac is currently [2 Sept 2009] being run as a windoze service until
> such time as we replace it with something else or start running properly
> under apache.
>
> This is implemented using srvany.exe (from the windoze resource kit) as
> a  service using the LocalSystem account.  The actual application being
> hosted is specified by registry keys at:~
>
>> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tracd
>> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tracd\Enum
>> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tracd\Parameters
>> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tracd\Security
>
> ...specifically, under Parameters add the following string parameters:
>> Application
>> AppParameters
>
> See "tracd.reg" below for hints...
>
> [tracd]
> -p <port>
> -e <root-path>
> --basic-auth="*",d:\svn\passwd.svn,ox4006dc ("*" is all projects)
> --http11
>
> ...this last should fix some issues with apparent failures on form
> submit (change ox4006dc to your login "domain" identifier of choice.
>
> x-x-x-x tracd.reg (NB: edit for your own use!!!) x-x-x-x-x
>
> Windows Registry Editor Version 5.00
>
> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tracd\Parameters]
> "Application"="c:\\python26\\python.exe"
> "AppParameters"="c:\\python26\\scripts\\tracd-script.py -p 8000 --http11
> -e d:\\trac\\sites --basic-auth=\"*\",d:\\svn\\passwd.svn,ox4006dc"
>
> Remember to change ox4006dc and the various paths to suit your setup.
>
> ~ mark c
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to