Watch configuration file changes with inotify
Instead of reading the files every 60 seconds, we could just watch them with inotify (if available) and reload them only when they are changed.
It sounds like a good idea, but how widely is inotify available? The benefit probably isn't worth it if it breaks compatibility with any platforms in use (as I don't think reading the config file is a bottle-neck... yet :grin:).
inotify was added to Linux 2.6.13, so it should be widely available now. If it's not available we can fallback to the current interval watcher of course.
The main benefit is not the speed, but that you don't have to wait for 60 seconds when you are experimenting with different configurations.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.