I want to be able to control startup and shutdown of my TG2 app on
Windows.

Currently I simply use  "paster serve myapp.ini"  to start the server,
but what is the best way to terminate it? Either from within the tgapp
or externally?

I need something programatic, so hitting ctrl-C is not a viable
option. I didn't see anything in the paster docs and I had nothing to
lose so I tried to I raise KeyboardInterrupt or call sys.exit() from a
controller.  All I get is a web-presented traceback and the server
continues(of course :-) ).

Thanks in advance.

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

Reply via email to