mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
45 lines
564 B
Bash
Executable file
45 lines
564 B
Bash
Executable file
#!/bin/sh /etc/rc.common
|
|
|
|
# Uncomment this if functions need to called inside /lib/qos
|
|
# include /lib/qos
|
|
|
|
START=21
|
|
STOP=10
|
|
|
|
USE_PROCD=1
|
|
NAME=qosmngr
|
|
PROG=/usr/sbin/qosmngr
|
|
|
|
. /lib/functions.sh
|
|
|
|
. /lib/qos/qos.sh
|
|
|
|
start_service() {
|
|
if [ -f "/etc/config/qos" ]; then
|
|
reload_qos
|
|
procd_open_instance qosmngr
|
|
procd_set_param command ${PROG}
|
|
procd_set_param respawn
|
|
procd_close_instance
|
|
fi
|
|
}
|
|
|
|
boot() {
|
|
setup_qos
|
|
start
|
|
}
|
|
|
|
service_triggers() {
|
|
procd_add_reload_trigger qos
|
|
}
|
|
|
|
restart() {
|
|
stop
|
|
setup_qos
|
|
start
|
|
}
|
|
|
|
reload_service()
|
|
{
|
|
reload_qos_service
|
|
}
|