[Twisted-Python] Shutdown in Windows

Antony Kummel antonykummel at yahoo.com
Tue Oct 11 07:56:55 EDT 2005


Okay, but how about shutting down cleanly when the
computer is shut down?

--- Henning.Ramm at mediapro-gmbh.de wrote:

> >Does anyone know how to cleanly shut down a Twisted
> >application from the outside (i.e. from a different
> >process, via the OS) in Windows? So far, only
> >brute-force killing worked for me, which isn't
> >particularly clean.
> 
> Probably not really a help for you:
> My apps use a 'appname.lock' file (no real lock, I'm
> on Windows, too, but only a "I'm running" sign
> containing their PID) and look for a 'appname.stop'
> file in the same dir, so my other apps can check the
> 'locks' if the PID is still running and can write a
> 'stop' file that causes the appropriate app to end
> itself. That is easy enough to work even with simple
> Batches...
> 
> Best regards,
> Henning Hraban Ramm
> Südkurier Medienhaus / MediaPro
> Support/Admin/Development Dept.
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
>
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> 



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com




More information about the Twisted-Python mailing list