* [B.A.T.M.A.N.] alfred hook to run when new information is received?
@ 2013-11-03 5:52 Gui Iribarren
2013-11-04 10:25 ` Simon Wunderlich
0 siblings, 1 reply; 2+ messages in thread
From: Gui Iribarren @ 2013-11-03 5:52 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
Hey Simon,
until sarcasmarec ideas come true... ;)
[(2013/10/14) marec: d0tslash: we should release some more daemons]
we're doing our best to convince current daemons to turn *more* evil, in
the meanwhile
turns out, we're trying to propagate dnsmasq dhcp leases over the
network with alfred
[1]:
http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2013q4/007750.html
with the current 'alfred-facters' 5-minute cronjob (or any cronjob,
yeah) we can send a reload signal to dnsmasq at an acceptably short
interval. Nevertheless, something more realtime would be highly
desirable in this case
some kind of hook inside the C code, that gets called when alfred gets
updated information from any other node, and the hook runs a script (or
maybe all facters in facters_dir?)
in other words, instead of polling alfred every X interval to see if
there's any new info, make alfred react as soon as it receives
propagated info, so that it calls facter scripts and they can use that
info ASAP.
What do you think? Sounds useless? doable? Lightweight? Almighty?
gui :)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [B.A.T.M.A.N.] alfred hook to run when new information is received?
2013-11-03 5:52 [B.A.T.M.A.N.] alfred hook to run when new information is received? Gui Iribarren
@ 2013-11-04 10:25 ` Simon Wunderlich
0 siblings, 0 replies; 2+ messages in thread
From: Simon Wunderlich @ 2013-11-04 10:25 UTC (permalink / raw)
To: b.a.t.m.a.n
Hey Guido,
> Hey Simon,
> until sarcasmarec ideas come true... ;)
> [(2013/10/14) marec: d0tslash: we should release some more daemons]
> we're doing our best to convince current daemons to turn *more* evil, in
> the meanwhile
>
> turns out, we're trying to propagate dnsmasq dhcp leases over the
> network with alfred
> [1]:
> http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2013q4/007750.html
>
> with the current 'alfred-facters' 5-minute cronjob (or any cronjob,
> yeah) we can send a reload signal to dnsmasq at an acceptably short
> interval. Nevertheless, something more realtime would be highly
> desirable in this case
>
> some kind of hook inside the C code, that gets called when alfred gets
> updated information from any other node, and the hook runs a script (or
> maybe all facters in facters_dir?)
>
> in other words, instead of polling alfred every X interval to see if
> there's any new info, make alfred react as soon as it receives
> propagated info, so that it calls facter scripts and they can use that
> info ASAP.
>
> What do you think? Sounds useless? doable? Lightweight? Almighty?
Doable - sure. Almight - maybe. :D
How about:
* add another parameter to the server like --update-script
/path/to/script.sh. This could call /path/to/script.sh $ID with the parameter
$ID containg the ID which got updated
* generate and keep a checksum of the received data. Update and compare the
checksum when new data is received
* when the checksum is updated or some data times out, call the update-scipt
Shouldn't be so hard, and could still fit in the "lightweight" concept. ;) Are
you willing to work on that?
BTW, I'm still waiting for your updated bat-hosts lua patch. :)
Cheers,
Simon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-04 10:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-03 5:52 [B.A.T.M.A.N.] alfred hook to run when new information is received? Gui Iribarren
2013-11-04 10:25 ` Simon Wunderlich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox