integrant

bocaj 2019-09-18T23:29:04.001900Z

I'd like to call

(halt! system)
when a production system is triggered to shutdown (in my case from Prunsrv, apache project that's set up a windows service. How do I get the running system config in production, similar to
integrant.repl.state/system

2019-09-19T14:07:31.011200Z

I suppose you'd have to store the system somewhere in an atom.

bocaj 2019-09-19T14:09:03.011400Z

Fair enough

bocaj 2019-09-19T20:07:38.013Z

Turns out duct puts system info in the parent thread (or whatever it's called). Should work, so I'll try it out. https://github.com/duct-framework/core/blob/master/src/duct/core.clj#L207