Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Original comment by Anonymous:
this from maillist:
How to stop cp2 server with nt services
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:
svc_name = "MyApp"
svc_display_name = "%s %s"%(svc_name,endfirst)
Get a handle on our service
scm = win32service.OpenSCManager(
If our name is still ends with '(First Run)' then change our setup
displayName = win32service.QueryServiceConfig(service)
Make our service autostart and change it's name so this isn't run
or is cpg.server.stop(),but cpg.server.stop()
if name == 'main':
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 ?