EmersonElectricCo / fsf

File Scanning Framework
Apache License 2.0
285 stars 49 forks source link

offload initializing loggers, configs, and yara.compile to FSF main process #56

Open akniffe1 opened 7 years ago

akniffe1 commented 7 years ago

Adding a SIGHUP handler in the main process could allow us to monitor for changes to the fsf-server configs, dispositioner, and yara rules directory to reload configs when those files change. We could also initialize the loggers here too, as the modular loggers should be subject to the fsf-server config.

Moving these processes to main affords the opportunity to find some performance gains for FSF by reducing the number of init steps in the scanner and processor.