FAQ
Hello!

Some components of my application require accurate de-initialization to
avoid resource leaks. I using Catalyst which running under
FastCGI(ProcManager) and looking for possibility get notification that
application is restarting or shutting down to perform specific cleanup
actions.
Seems to me ProcManager have required callbacks to notify application about
events(e.g. pm_die) but is it possible to subscribe on such events without
serious Catalyst hacking?

Serg Gulko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20101222/88077faa/attachment.htm

Search Discussions

  • Oleg Kostyuk at Jan 14, 2011 at 7:04 pm
    May be better to ask on kiev.pm? ;)


    2010/12/22 rimas rimas <rimas@zeos.net>:
    Hello!

    Some components of my application require accurate de-initialization to
    avoid resource leaks. I using Catalyst which running under
    FastCGI(ProcManager) and looking for possibility get notification that
    application is restarting or shutting down to perform specific cleanup
    actions.
    Seems to me ProcManager have required callbacks to notify application about
    events(e.g. pm_die) but is it possible to subscribe on such events without
    serious Catalyst hacking?

    Serg Gulko
    _______________________________________________
    List: Catalyst@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/


    --
    Sincerely yours,
    Oleg Kostyuk (CUB-UANIC)
  • Jon Schutz at Jan 14, 2011 at 10:16 pm

    On 12/23/2010 06:28 AM, rimas rimas wrote:
    Hello!

    Some components of my application require accurate de-initialization
    to avoid resource leaks. I using Catalyst which running under
    FastCGI(ProcManager) and looking for possibility get notification that
    application is restarting or shutting down to perform specific cleanup
    actions.
    Seems to me ProcManager have required callbacks to notify application
    about events(e.g. pm_die) but is it possible to subscribe on such
    events without serious Catalyst hacking?

    Serg Gulko
    Create your own App::FCGIManager with 'use base qw(FCGI::ProcManager)',
    and run your process with 'app_fastcgi.pl -M App::FCGIManager'. Then
    you have access to override or adapt any of the FCGI::ProcManager
    methods that you want to.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedDec 22, '10 at 7:58p
activeJan 14, '11 at 10:16p
posts3
users3
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2022 Grokbase