olsrd: Robustify default procd respawn_retry

Should `olrsd` crash *just once* after starting less than 3600s ago,
it will never restart. Fix that by making `olsrd`'s `respawn_retry`
non-zero.

Signed-off-by: <hurricos@gmail.com>
This commit is contained in:
Martin Kennedy 2022-06-03 16:09:23 -04:00
parent e2d72c5775
commit 17d943a67f
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ start_service() {
config_get _respawn_threshold procd respawn_threshold 3600 config_get _respawn_threshold procd respawn_threshold 3600
config_get _respawn_timeout procd respawn_timeout 15 config_get _respawn_timeout procd respawn_timeout 15
config_get _respawn_retry procd respawn_retry 0 config_get _respawn_retry procd respawn_retry 5
procd_set_param command "$BIN" procd_set_param command "$BIN"
procd_append_param command -f ${CONF} procd_append_param command -f ${CONF}

View file

@ -48,7 +48,7 @@ start_service() {
config_get _respawn_threshold procd _respawn_threshold 3600 config_get _respawn_threshold procd _respawn_threshold 3600
config_get _respawn_timeout procd respawn_timeout 15 config_get _respawn_timeout procd respawn_timeout 15
config_get _respawn_retry procd respawn_retry 0 config_get _respawn_retry procd respawn_retry 5
procd_set_param command "$BIN" procd_set_param command "$BIN"
procd_append_param command -f ${CONF} procd_append_param command -f ${CONF}