Commit Graph

12 Commits

Author SHA1 Message Date
Perry Melange 0bb6aa04f6 olsrd: wait for wireless to initialize before starting
Wait for wireless to initialize (pending="false") to ensure
that any olsrd(6) configured interfaces and their associated
devices are up.  This provides the init script the ability
to properly add all interface sections to the generated
config file /tmp/etc/olsrd(6).conf

Signed-off-by: Perry Melange <isprotejesvalkata@gmail.com>
2021-10-13 09:11:14 +02:00
Nick Hainke 87be9afac6 olsrd: rename general to procd
It was requested to name the section "procd".

Signed-off-by: Nick Hainke <vincent@systemli.org>
2021-08-01 11:06:14 +02:00
Nick Hainke 775d030a58 olsrd: make respawn_threshold configurable
Also make respawn_threshold configurable. Further, add default
values for:
- respawn_threshold 3600
- respawn_timeout 15
- respawn_retry 0

Signed-off-by: Nick Hainke <vincent@systemli.org>
2021-08-01 10:41:32 +02:00
Tobias Schwarz bc58bd99e8 olsrd: improve respawn settings
This increases the amount of seconds to wait before a service restart
attempt from 5 to 15 seconds and allows unlimited retries. Olsrd
sometimes crashes together with a network interface and 5 seconds can
be too short to bring back up a crashed network interface, which is
required for olsrd to restart. It also adds the ability to configure
the wait time (respawn_timeout) and the number of retries
(respawn_retry).

Signed-off-by: Tobias Schwarz <info@tobias-schwarz.com>
2021-07-31 11:36:39 +02:00
Nick Hainke 5311c844b6 olsrd: fix olsrd starting before network
Should fix #691.

Sometimes the wifi interface is not ready before olsrd tries to access
it. This leads to warnings in the form of:

daemon.info olsrd: /etc/rc.d/S65olsrd: olsrd_write_interface()
	Warning: Interface 'wireless0' not found, skipped
daemon.notice procd: /etc/rc.d/S65olsrd: olsrd: /etc/rc.d/S65olsrd:
	olsrd_write_interface() Warning: Interface 'wireless0' not found,			skipped

We make use of the "wait_for" procd command that allows us to wait for
the network before starting olsrd.

Tested-by: Noki
Signed-off-by: Nick Hainke <vincent@systemli.org>
2021-07-07 14:49:23 +02:00
Nick Hainke 64aa8866b7 olsrd: reload if config changed via uci
Fixes:
https://github.com/openwrt/luci/issues/5139

Signed-off-by: Nick Hainke <vincent@systemli.org>
2021-06-23 16:10:55 +02:00
Nick Hainke dc0adf7dce olsrd: switch to procd
Signed-off-by: Nick Hainke <vincent@systemli.org>
2021-06-11 08:36:30 +02:00
Bastian Bittorf df3ecc4e67 olsrd: change name of PID-file for olsrd4 from '/var/run/olsrd4.pid' to '/var/run/olsrd.pid' to be compatible with freifunk-watchdog-scripts (this is the default old behaviour) 2014-08-19 15:09:41 +02:00
Alessio Caiazza 0a08b22f15 olsrd: backward compatibility (config and init script) 2014-06-12 12:57:12 +02:00
Jernej Kos 744bef42d6 olsrd: Added missing $IPKG_INSTROOT. 2014-06-09 19:27:05 +02:00
Alessio Caiazza 60e06a3da7 olsrd: configuration sanity checks
* do not start in presence of the old /etc/config/olsrd
* use always use the appropriate IpVersion.
2014-05-28 16:55:55 +02:00
Alessio Caiazza 4b06c42f97 olsrd: splitting IPv6/4 configuration and start scripts
As mentioned by zioproto[1] 6and4 is badly broken, this patch will
use 2 different configuration and init scripts.

[1] https://github.com/openwrt-routing/packages/issues/16#issuecomment-32892327
2014-05-28 15:09:07 +02:00