On Fri, Jul 30, 2010 at 4:53 AM, Wesley Dyk <[email protected]> wrote:

>  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]<turbogears%[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]<turbogears%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.
>
> Wes,

Thanks for that. I'm having difficulties getting this to work. I have added
the following to my development.ini file:

# Add a winservice section to your ini file:
[winservice]
# windows service name
svc_name = projects
svc_display_name = Project Tracking
svc_description = Qantas Property Development Projects
log_file = C:\\tg2env\\Scripts\\projects\\logs
virtual_env = C:\\tg2env\\Scripts\\projects

however, I get an error when trying to start the service. Do you see
anything wrong with my setup? My application has been developed in 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.

Reply via email to