Since we now have sys::Env.addShutdownHook it'd be appropriate to leverage this to shutdown any services started by util::AbstractMain.runServices.
sys::Env.addShutdownHook
util::AbstractMain.runServices
Something like:
virtual Int runServices(Service[] services) { Env.cur.addShutdownHook |->| { services.each |Service s| { s.stop } services.each |Service s| { s.uninstall } } services.each |Service s| { s.install } services.each |Service s| { s.start } Actor.sleep(Duration.maxVal) return 0 }
That's a great idea.
I pushed a fix
Login or Signup to reply.
msl Fri 21 Jan 2011
Since we now have
sys::Env.addShutdownHook
it'd be appropriate to leverage this to shutdown any services started byutil::AbstractMain.runServices
.Something like:
brian Tue 25 Jan 2011
That's a great idea.
I pushed a fix