[Catalyst] Killing the standalone perl server programatically

Kieren Diment kieren at diment.org
Fri Jun 12 13:36:14 GMT 2009


  sub quit : Local {
      exit 1;
  }

and <a href="[% c.uri_for('quit') %]" onClick="return confirm('This  
will terminate  your session. Are you sure?')">Quit</a>

both worked fine for me when I did this the other day.

But that was using a desktop OS (Windows and OS X fwiw), not a mobile  
platform.



On 12/06/2009, at 11:19 PM, Stefan Washietl wrote:

> 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@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/





More information about the Catalyst mailing list