27 Jan
2012
27 Jan
'12
3:31 p.m.
I'm using Dancer/Starman, and was looking for a place to create variables / run code that occurs once a new worker process is created. I can run code in the children process within the routes, but was looking for a way to run code just once upon the initialization of each worker process. Also, I was looking for the cleanest way to trigger code upon a graceful starman server shutdown (occurring when the master process is about to exit). Thanks!