carbon icon indicating copy to clipboard operation
carbon copied to clipboard

Watch configuration file changes with inotify

Open janfabry opened this issue 13 years ago • 3 comments

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.

janfabry avatar May 18 '13 20:05 janfabry

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:).

rowanu avatar May 28 '13 12:05 rowanu

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.

janfabry avatar May 28 '13 13:05 janfabry

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.

stale[bot] avatar Apr 13 '20 22:04 stale[bot]