mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
qosmngr: use procd task for qos initialization
This commit is contained in:
parent
c676cde1fb
commit
2cbb433cbd
2 changed files with 11 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
5
qosmngr/files/common/lib/qos/init_qos.sh
Executable file
5
qosmngr/files/common/lib/qos/init_qos.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
. /lib/qos/qos.sh
|
||||
|
||||
reload_qos
|
||||
Loading…
Add table
Reference in a new issue