gamelinux / prads

Passive Real-time Asset Detection System

Home Page:http://gamelinux.github.com/prads/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

change config dynamically

comotion opened this issue · comments

would be cool to change config dynamically:
either have a command interface or SIGHUP

we should have both (com and HUP). re-call parse_config_file()
if it was that simple though I'd already have done it :d

a2342b2 will reparse the config upon SIGHUP. This is somewhat sketchy, and makes only sense if you want to enable or disable some detection method. If you delete some conf stanza that was there however, it will not be reset to default nor disabled, it will simply stay what it was before the HUP signal came in.

Even trickier: if you expect us to move fifo or pidfile at your HUP behest, you can suck it.

and for brownie points: our handling of the signature structs is optimized for speed, and this speed would have to be sacrificed if we were to desire on-the-fly signature updates. We could in theory ADD to the signatures, but we can't remove signatures without a restart. Let me rephrase that: we COULD re-read signature files, but we'd be slower and that's a compromize we're not ready to make.