dxhd
dxhd copied to clipboard
auto reloading the config
What do you want
A flag (-a
and --auto-reload
) to make dxhd watch the config file passed for changes, and auto-reload that config on change.
Why
To avoid reloading all the dxhd instances/to get changes applied instantly.
Implementation hints
Use fsnotify for it.
Currently looking at using the inotify API that is already provided through syscall so it doesn't create another dependency.
Probably reserve -a
flag for the future, and use -w
--watch
for this.
Addition to implementation hints: -w
should be ignored if -i
is passed.
After #39 this can be done easily.