iopsys-feed/qosmngr/files/etc/init.d/qos
2021-01-12 14:17:06 +05:30

48 lines
656 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
include /lib/qos
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
}
stop() {
#stop_service() is called after procd killed the service
echo ;
}
boot() {
setup_qos
start
}
service_triggers() {
procd_add_reload_trigger qos
}
reload_service() {
# Call functions to configure QoS
start
}
restart() {
setup_qos
start
}