Add inotify support for dynamic home servers #4649
Labels
feature enhancement
category: a new feature (an extension of functionality)
v3.2.x
meta: relates to the v3.2.x branch
v4.0.x
meta: relates to the v4.0.x branch
Message
It may be useful to add inotify support for dynamic home servers. That way you can just add / delete files in
raddb/home_servers
, and the server will automatically load / delete the files.Example code for inotify is at https://www.thegeekstuff.com/2010/04/inotify-c-program-example/
That doesn't seem too bad, actually. The
realm.c
file would have to be able to add anfd
to the event list. But everything else would likely be less than 500 LoC. It would likely be best to have a linux-specific code path, and an OSX-specific code path.Linux can use inotify, and OSX can use kqueue. The
master
code branch in has some code forkqueue()
, see references toVNODE
. Tho v3.2.x doesn't have support for anything other than read filters. It might be simples to just ignore OSX :)The text was updated successfully, but these errors were encountered: