Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Dancer2 start/stop hooks

by morgon (Priest)
on May 18, 2018 at 15:49 UTC ( [id://1214862]=note: print w/replies, xml ) Need Help??


in reply to Re: Dancer2 start/stop hooks
in thread Dancer2 start/stop hooks

Yes, I've been thinking about that and it would probably work for my case, but in the general case (I think) a dancer app may fork several workers and that would result in serval END-blocks being fired for one run of dancer.

Replies are listed 'Best First'.
Re^3: Dancer2 start/stop hooks
by 1nickt (Canon) on May 18, 2018 at 18:57 UTC

    You could get the PID in the script before you dance; and use it as a conditional in the END block.


    The way forward always starts with a minimal test.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1214862]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-19 16:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found