diff --git a/fw/vhost.c b/fw/vhost.c index a79621e161..19a967283d 100644 --- a/fw/vhost.c +++ b/fw/vhost.c @@ -2392,6 +2392,9 @@ tfw_vhost_cfgstart(void) { TfwVhost *vh_dflt; + number_of_regex = 0; + number_of_db_regex = 0; + BUG_ON(tfw_vhosts_reconfig); tfw_vhosts_reconfig = kmalloc(sizeof(TfwVhostList), GFP_KERNEL); if (!tfw_vhosts_reconfig) { diff --git a/scripts/regex_start.sh b/scripts/regex_start.sh index 5a89428a0d..554f5bbfea 100755 --- a/scripts/regex_start.sh +++ b/scripts/regex_start.sh @@ -7,11 +7,9 @@ tmp_path="/tmp/tempesta" for filename in ${tmp_path}/*.txt; do name=$(basename "$filename" .txt) db_path="/sys/kernel/config/rex/${name}" - echo $dbpath rm -rf ${tmp_path}/out/ && mkdir ${tmp_path}/out - echo "${script_path}/hscollider -e ${filename} -V2 -ao ${tmp_path}/out/ -n1" - #${script_path}/hscollider -e ${filename} -ao ${tmp_path}/out/ -n1 + #${script_path}/hscollider -e ${filename} -ao ${tmp_path}/out/ -n1 #this version for single block strings ${script_path}/hscollider -e ${filename} -V5 -ao ${tmp_path}/out/ -n1 mkdir $db_path diff --git a/scripts/tempesta.sh b/scripts/tempesta.sh index e03b94fb82..eb56f5636b 100755 --- a/scripts/tempesta.sh +++ b/scripts/tempesta.sh @@ -317,10 +317,12 @@ reload() { update_js_challenge_templates echo "Running live reconfiguration of Tempesta..." + $script_path/regex_stop.sh err=$(start_tempesta_and_check) if [[ $err != "0" ]]; then error "cannot reconfigure Tempesta FW (sysctl message: ${err##*: }), please check dmesg" else + $script_path/regex_start.sh echo "done" remove_tmp_conf fi