mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
mcastmngr: Make sure we don't crash during boot up.
Avoid polluting the syslog with messages regarding mcastmngr crashing: procd: Instance mcast::instance1 s in a crash loop 6 crashes, 0 seconds since last crash
This commit is contained in:
parent
a116104811
commit
f84c374a16
3 changed files with 14 additions and 0 deletions
|
|
@ -251,3 +251,7 @@ configure_mcast() {
|
||||||
|
|
||||||
configure_mcpd
|
configure_mcpd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
validate_params() {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,10 @@ start_service() {
|
||||||
configure_mcast
|
configure_mcast
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! validate_params; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "${PROG_PARAMS}" ]; then
|
if [ -z "${PROG_PARAMS}" ]; then
|
||||||
start_mcast_service
|
start_mcast_service
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -425,3 +425,9 @@ configure_mcast() {
|
||||||
read_mcast_proxy_params
|
read_mcast_proxy_params
|
||||||
config_mcproxy
|
config_mcproxy
|
||||||
}
|
}
|
||||||
|
|
||||||
|
validate_params() {
|
||||||
|
[ -n "${PROG_PARAMS}" ] && return 0
|
||||||
|
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue