mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-01-28 01:47:19 +01:00
qosmngr: Updated log level
This commit is contained in:
parent
5b882870c9
commit
f251701534
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue