Karmator icon indicating copy to clipboard operation
Karmator copied to clipboard

Have a way to hot-reload specific config/resources during runtime.

Open pharaun opened this issue 9 years ago • 0 comments

Develop a way to poke the bot to make it reload its configuration as needed.

IE one possible approach would be to have a separate thread listen to some sort of pipe/filesystem input which when it changes or a message is sent to the pipe, it will then hot-reload config files that it can (such as database connection)

One way to handle the database connection is to have it be stored in some sort of ioref and give everyone a ref to that then when we need to reconnect to the database or so (ie master/slave changes) it will be able to swap in a new connection.

pharaun avatar Jul 02 '15 23:07 pharaun