Commit Graph

4 Commits

Author SHA1 Message Date
Conrad Lara - KG6JEI 5c3ee1d068 bugfix: Add GPLv3 license text to core BBHN Mesh files
Program went GPLv3 last year but license text was never added to files

Default text to give credit to David as he is listed in all commits and to reference the BBHN Austin team at the same time as they were part of the group of HAM's that started this project.
2015-01-18 11:36:49 -08:00
Conrad Lara - KG6JEI fde5c1367e bugfix: olsrd-watchdog false triggers a reboot.
Using the method suggested by Henning Rogge in 2014

{{{
1) remove file
2) wait 2 intervals
3) if file exists, go to 1)
4) restart olsr, then go to 1)
}}}

With the exception that we currently wait more than 2 intervals.

Even if the script hits a collision at the same time the file is being written the file will already exist from one of the previous writes or the current write.

Removing a file in use is safe as once the FD closes the file contents are fully released.

Additional Advantages:
* Should be more efficient to check if file exists instead of reading the file and comparing date stamps.
* Removing the Perl code moves us one step closer to retiring Perl in the future.
2015-01-15 16:35:55 -08:00
Conrad Lara - KG6JEI 94981313f8 bugfix: rework olsrd-watchdog to avoid race condition
The olsrd watchdog module truncates and writes the latest timestamp every 5 seconds. The olsrd-watchdog script could catch the file during write causing an instant restart.

Changed to want 3 failures before restarting olsrd reducing the chance of collision based restarts.

fixes BBHN->ticket:68
2014-11-03 19:59:34 -08:00
Conrad Lara - KG6JEI ae2674e764 import of files/ from BBHN 1.0.0 (bbhn svn 273) 2013-11-15 06:11:16 +00:00