diff --git a/qosmngr/files/common/etc/init.d/qos b/qosmngr/files/common/etc/init.d/qos index d8c286170..837840884 100755 --- a/qosmngr/files/common/etc/init.d/qos +++ b/qosmngr/files/common/etc/init.d/qos @@ -7,7 +7,6 @@ START=21 STOP=10 USE_PROCD=1 -NAME=qosmngr PROG=/usr/sbin/qosmngr INIT_QOS=/lib/qos/init_qos.sh @@ -17,12 +16,15 @@ INIT_QOS=/lib/qos/init_qos.sh start_service() { if [ -f "/etc/config/qos" ]; then + log_level=$(jsonfilter -qe '@.daemon.config.loglevel' < /etc/bbfdm/services/qosmngr.json) + [ -z "$log_level" ] && log_level="3" + procd_open_instance init_qos procd_set_param command "${INIT_QOS}" procd_close_instance procd_open_instance qosmngr - procd_set_param command "${PROG}" + procd_set_param command "${PROG}" -l "${log_level}" procd_set_param respawn procd_close_instance fi