mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-01-28 01:47:19 +01:00
dectmngr: Disable dect_cmbs logging to file by default
To enable logging of communication between Host and DECT CMBS target the following steps needs to be run: $uci set asterisk.general.log_dect_cmbs='1' $uci commit $/etc/init.d/dectmngr restart Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
This commit is contained in:
parent
41df4b3105
commit
377e940927
1 changed files with 11 additions and 1 deletions
|
|
@ -40,8 +40,18 @@ start_service() {
|
|||
model_id="01.02.03"
|
||||
[ -n "$model_id" -a ${#model_id} -eq 8 ] && opt_ext="$opt_ext -model $model_id"
|
||||
|
||||
config_load asterisk
|
||||
config_get_bool log_dect_cmbs general log_dect_cmbs 0
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command $PROG -comname ttyH0 -log $LOG_PATH/dect-cmbs.log $opt_ext
|
||||
if [ $log_dect_cmbs -eq 0 ]; then
|
||||
echo "Starting dectmngr with cmbs logging disabled"
|
||||
procd_set_param command $PROG -comname ttyH0 $opt_ext
|
||||
rm -f $LOG_PATH/*
|
||||
else
|
||||
echo "Starting dectmngr with cmbs logging enabled"
|
||||
procd_set_param command $PROG -comname ttyH0 -log $LOG_PATH/dect-cmbs.log $opt_ext
|
||||
fi
|
||||
procd_set_param respawn 6 2 3
|
||||
procd_set_param term_timeout 20
|
||||
procd_set_param triggers asterisk
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue