This commit is contained in:
dddaniel 2024-04-17 16:35:26 +09:00 committed by GitHub
commit 3594a4abf1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 14 additions and 6 deletions

View File

@ -1,6 +1,7 @@
config olsrd
config olsrd olsrd
# uncomment the following line to use a custom config file instead:
#option config_file '/etc/olsrd.conf'
option ignore 0
config LoadPlugin
option library 'olsrd_arprefresh.so.0.1'

View File

@ -39,17 +39,20 @@ boot()
start_service() {
olsrd_generate_config $OLSRD
procd_open_instance
config_load olsrd
local _respawn_threshold
local _respawn_timeout
local _respawn_retry
local _ignore
config_get _respawn_threshold procd respawn_threshold 3600
config_get _respawn_timeout procd respawn_timeout 15
config_get _respawn_retry procd respawn_retry 0
config_get_bool _ignore olsrd ignore 0
[ $_ignore -ne 0 ] && return
procd_open_instance
procd_set_param command "$BIN"
procd_append_param command -f ${CONF}
procd_append_param command -nofork

View File

@ -1,6 +1,7 @@
config olsrd
config olsrd olsrd
# uncomment the following line to use a custom config file instead:
#option config_file '/etc/olsrd6.conf'
option ignore 0
config LoadPlugin
option library 'olsrd_txtinfo.so.1.1'

View File

@ -39,17 +39,20 @@ boot()
start_service() {
olsrd_generate_config $OLSRD
procd_open_instance
config_load olsrd6
local _respawn_threshold
local _respawn_timeout
local _respawn_retry
local _ignore
config_get _respawn_threshold procd _respawn_threshold 3600
config_get _respawn_timeout procd respawn_timeout 15
config_get _respawn_retry procd respawn_retry 0
config_get_bool _ignore olsrd ignore 0
[ $_ignore -ne 0 ] && return
procd_open_instance
procd_set_param command "$BIN"
procd_append_param command -f ${CONF}
procd_append_param command -nofork