FXIhub / hummingbird

Monitoring and Analysing flash X-ray imaging experiments
http://fxihub.github.io/hummingbird
BSD 2-Clause "Simplified" License
16 stars 14 forks source link

Reloading configuration file #11

Closed daurer closed 8 years ago

daurer commented 8 years ago

It should be possible to reload the backend configuration file on the fly, without the need to restart.


daurer commented 8 years ago

This could be dangerous. We have tried this in the past where parameters could be adjusted on the gui then sent via ZMQ to the master. In this case one needs to ensure that all accumulated variables are flushed and that the gui knows when it is receiving data derived from the new config parameters.

So in the end we needed to do a "soft reset" of the backend and the gui. However a "hard" reset, via our old friend Control-C, requires no change to our code base at all. I wonder if an automated reset would be a good compromise?


Original comment by: andyofmelbourne

daurer commented 8 years ago

Ctrl+c now reloads the configuration file. I don't think it will cause problems. Double Ctrl+c to exit.


Original comment by: Filipe Maia

daurer commented 8 years ago

Fixed.


Original comment by: Filipe Maia