On Wed, Jul 28, 2010 at 5:14 PM, Michael Pearce <[email protected]> wrote:
> I'm trying to run my TG2 app as a windows service so that I don't need to
> stay logged on to the server. There is a script (service.py) on the TG1.0
> website that provides instructions on this. However, I am unable to get it
> working with TG2. Has anyone been able to achieve this. If so, what changes
> do I need to make to service.py to make it work with TG2.
>
> Thanks, Michael
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" 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/turbogears?hl=en.
>

Michael,
I have my turbogears environment running as a windows service with
wsgisvc.  You need to have the win32 extensions installed.  Install
wsgisvc with:

easy_install.exe wsgisvc

Add a winservice section to your ini file:
[winservice]
# windows service name
svc_name = <application shortname - for NET START|STOP shortname>
svc_display_name = <application long name>
svc_description = <description of your app>
log_file = <path to your logfile>
virtual_env = <path to your virtual env>

Then install the service by using:
wsgisvc -c <ini file> install

Wes

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en.

Reply via email to