[Olsr-dev] olsrd v2 and inotify
Henning Rogge
(spam-protected)
Tue May 8 15:13:46 CEST 2012
On 05/08/2012 03:01 PM, Ferry Huberts wrote:
> Hi Henning
>
> One thing I would _love_ to see in olsrd v2 is inotify integration.
> In a way that I can hand the core a list of files I want to watch.
> Since inotify works with a socket, I guess this shouldn't be too hard to
> add, right?
> We could just add it to the scheduler, it polls the inotify socket for
> events and delivers them to the right plugin.
>
> This would also be very handy for automatically reloading the config
> file when it changes.
>
> What do you think?
The current framework code contains a function called
"olsr_cfg_trigger_reload()", which commands the mainloop to reload the
configuration settings defined by the command line.
Should be easy to write a plugin that triggers the command when a
certain file is changed.
Henning Rogge
--
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut für
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Neuenahrer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961, Fax +49 228 9435 685
mailto:(spam-protected) http://www.fkie.fraunhofer.de
GPG: E1C6 0914 490B 3909 D944 F80D 4487 C67C 55EC CFE0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6156 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20120508/1818a9a8/attachment.bin>
More information about the Olsr-dev
mailing list