There's not currently (As far as I know) a standard way to do that,
but you could use a monitor to achieve it.

Ref = monitor(process, boss_sup),
receive
    {'DOWN', _, process, {boss_sup, _}, _} -> run_my_other_shutdown_scripts()
end.

-Jesse

On Mon, Aug 4, 2014 at 4:16 AM, Caiyun Deng <[email protected]> wrote:
> Hi!
> When i want to do something at the server start, I can do something in
> priv/init.
> But when i want to do something at the server stop, How can i do?
>
> --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/b1c56929-e5ac-4990-ba10-6a3188e49ed2%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



-- 
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/CAPTXyXf8N765USMTgOn%3DpbJ8DN6KREtrEwZ8A_7_NsXzssuKVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to