[Olsr-dev] [ANNOUNCE - v1] olsrd v0.9.0 released / hotplug

Conrad Lara (spam-protected)
Mon Jun 8 17:15:54 CEST 2015



> On Jun 8, 2015, at 1:54 AM, Bastian Bittorf <(spam-protected)> wrote:
> 
> * Philipp Borgers <(spam-protected)> [08.06.2015 10:47]:
>>> On Mon, Jun 08, 2015 at 09:42:54AM +0200, Ferry Huberts wrote:
>>> I see that openwrt has a 'hotplug' script.
>>> That seems entirely superfluous, olsrd itself will detect when a configured
>>> interface comes up or goes down. Restarting olsrd disturbs the mesh for no
>>> reason.
> 
> this is not true.
> 
> the hotplug script will fire up the interfaces on boot
> and will not disturb the mesh. the reason for that is, that interface
> names can change during worktime or are unknown during bootup.
> 
> but: i will review your changes during this week, ok?
> 
> bye, bastian
> 

A sub item to this (sure it's known already but will toss it in again to be sure)

Under new procd of OpenWRT (Barrier Breaker and newer) a restart call to a procd type init.d script is suppose to be somewhat
safe (for the service uptime) in that procd should not restart the service unless the (generated) config files have actually changed. 

This is useful for olsrd and other programs as one can just call a service restart any time an action could affect the service (hotplug) but unless the event actually did affect the service config it won't do anything.

> -- 
> Olsr-dev mailing list
> (spam-protected)
> https://lists.olsr.org/mailman/listinfo/olsr-dev




More information about the Olsr-dev mailing list