qosmngr: use procd task for qos initialization

This commit is contained in:
Mohd Mehdi 2025-03-18 07:53:44 +00:00 committed by IOPSYS Dev
parent c676cde1fb
commit 2cbb433cbd
No known key found for this signature in database
2 changed files with 11 additions and 2 deletions

View file

@ -9,6 +9,7 @@ STOP=10
USE_PROCD=1
NAME=qosmngr
PROG=/usr/sbin/qosmngr
INIT_QOS=/lib/qos/init_qos.sh
. /lib/functions.sh
@ -16,9 +17,12 @@ PROG=/usr/sbin/qosmngr
start_service() {
if [ -f "/etc/config/qos" ]; then
reload_qos
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}"
procd_set_param respawn
procd_close_instance
fi

View file

@ -0,0 +1,5 @@
#!/bin/sh
. /lib/qos/qos.sh
reload_qos