Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Proper shutdown handling? #1

Closed
alebon opened this issue Feb 14, 2015 · 1 comment
Closed

Proper shutdown handling? #1

alebon opened this issue Feb 14, 2015 · 1 comment

Comments

@alebon
Copy link

alebon commented Feb 14, 2015

Hey, i have seen your post @ https://groups.google.com/forum/#!topic/liftweb/ANI-9KQYyn0
Thanks for sharing! But i have a question, i have more or less implemented one project the same way you shoed in this repository. Just one question, can you add a sample how to properly shutdown the application so this part is really called:

LiftRules.unloadHooks.append { () =>
        logger.info("roboCup actors shutdown")
        Core.system.shutdown()
}

I can not see the logging info in console. I have already tried ~reStop and Ctrl+C. Both just kill the application without a graceful shutdown.

I heavily use this method to shutdown database connection pools, akka actors and so on...

Thanks a lot!

@vn971
Copy link
Owner

vn971 commented Jun 18, 2015

Seems like you asked the question on the Mailing List, too (and it's answered there).

For history: the sbt-revolver plugin does not handle shutdown hooks properly, so there is no way to use a shutdown hook while in reStart (development) mode. spray/sbt-revolver#20

@vn971 vn971 closed this as completed Jun 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants