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:
Markus Gothe 2025-01-21 17:56:11 +01:00 committed by Vivek Kumar Dutta
parent a116104811
commit f84c374a16
3 changed files with 14 additions and 0 deletions

View file

@ -251,3 +251,7 @@ configure_mcast() {
configure_mcpd configure_mcpd
} }
validate_params() {
return 0
}

View file

@ -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

View file

@ -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
}