
wash at paperpile
Jun 12, 2009, 6:19 AM
Views: 768
Permalink
|
|
Killing the standalone perl server programatically
|
|
I'm developing a desktop application using Catalyst and the brand new Titanium framework (http://www.appcelerator.com/). I need to start/stop the standalone server programatically. Starting is easy, but stopping the server (and its forks) again is tricky. I'd like a solution without keeping track of the PID and explicitely kill it from outside. I want to have something like http://localhost:3000/kill that calls something in the controller to shut down. The obvious thing exit(0); does not work. Any ideas how to do this? Stefan _______________________________________________ List: Catalyst[at]lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
|