-
-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_cpserver.stop() can't use #42
Comments
Original comment by Anonymous: this from maillist: How to stop cp2 server with nt services Hi I make cp2 with nt service, this is my code for install nt service: I copy from forum list of cp1.cherry.py and changed: import os class MyAppService(win32serviceutil.ServiceFramework): endfirst='(First Run)' svc_name = "MyApp" svc_display_name = "%s %s"%(svc_name,endfirst) Get a handle on our servicescm = win32service.OpenSCManager( If our name is still ends with '(First Run)' then change our setupdisplayName = win32service.QueryServiceConfig(service)[8] Make our service autostart and change it's name so this isn't runagainwin32service.ChangeServiceConfig( def SvcStop(self): or is cpg.server.stop(),but cpg.server.stop()can't work def SvcDoRun(self): if name == 'main': Reply Details: Show quoted text | View source | Unwrap Lines | Forward Remi Delon Nov 25, 7:51 am show options From: Remi Delon r...@cherrypy.org
You're right, it should be cpg.server.stop(), but it has a bug right now Can you add a ticket in Trac for that ? Thanks, Remi. |
Original comment by Anonymous: Is it an option to use the 'atexit' module for registering clearnup actions, then call the exit handler and call os._exit(0) ? |
Original comment by Anonymous: Fixed |
Issue with cherrypy.lib.auth.check_auth()
Originally reported by: Anonymous
I user cpg.server.stop() to call _cpserver.stop()
so stop website
and I found in _cphttpserver.py shutdown() is not defined!
Reported by lihuimail@gmail.com
The text was updated successfully, but these errors were encountered: