Commit graph

10 commits

Author SHA1 Message Date
Nick Hainke
e7e25b873b olsrd: rename general to procd
It was requested to name the section "procd".

Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit 87be9afac6)
2021-08-01 11:28:27 +02:00
Nick Hainke
e93c57981d 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>
(cherry picked from commit 775d030a58)
2021-08-01 11:28:27 +02:00
Tobias Schwarz
0eb67d72d0 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>
(cherry picked from commit bc58bd99e8)
2021-08-01 11:28:27 +02:00
Nick Hainke
911c0cb45a 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:56:57 +02:00
Nick Hainke
ce4d4578c7 olsrd: reload if config changed via uci
Fixes:
https://github.com/openwrt/luci/issues/5139

Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit 64aa8866b7)
2021-06-23 16:31:27 +02:00
Nick Hainke
2baff33918 olsrd: switch to procd
Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit dc0adf7dce)
2021-06-12 16:37:24 +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