routinator icon indicating copy to clipboard operation
routinator copied to clipboard

Allow reloading of config and restart validation in server mode on Unix.

Open partim opened this issue 6 years ago • 4 comments

Reloading the config should happen via SIGHUP, restarting validation should happen through SIGUSR1.

partim avatar Aug 17 '19 09:08 partim

Do you have a preferred library in mind here?

hellerve avatar Nov 12 '19 09:11 hellerve

Not really.

Config reload will require some rewiring. Probably best to just shut everything down, reload the config, and start up again.

partim avatar Nov 12 '19 09:11 partim

Yeah I’ve been playing around with a bunch of libraries (most notably rust-simple-signal and Tokio’s mostly undocumented Unix signal handling), and there is some lifetime trickery involved that makes it a little harder than just calling repo.reload_tals() (as an example) in a handler function!

hellerve avatar Nov 12 '19 09:11 hellerve

I think the best way is to use the pipe approach and ‘select’ for that instead of the current idle.wait() in Server::run.

partim avatar Nov 12 '19 09:11 partim