Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users
Killing the standalone perl server programatically
 

Index | Next | Previous | View Flat


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/

Subject User Time
Killing the standalone perl server programatically wash at paperpile Jun 12, 2009, 6:19 AM
    Re: Killing the standalone perl server programatically kieren at diment Jun 12, 2009, 6:36 AM
        Re: Killing the standalone perl server programatically wash at paperpile Jun 12, 2009, 7:31 AM
            Re: Killing the standalone perl server programatically ton.voon at opsera Jun 15, 2009, 2:12 PM
    Re: Killing the standalone perl server programatically hdp.perl.catalyst.users at weftsoar Jun 12, 2009, 6:47 AM
    Re: Killing the standalone perl server programatically jshirley at gmail Jun 12, 2009, 6:50 AM
    Re: Killing the standalone perl server programatically jshirley at gmail Jun 12, 2009, 6:52 AM
    Re: Killing the standalone perl server programatically wash at paperpile Jun 12, 2009, 7:22 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.