File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -344,13 +344,22 @@ stop_tfw_logger()
344
344
fi
345
345
}
346
346
347
+ check_configuration_file_presense ()
348
+ {
349
+ if [ ! -f " $tfw_cfg_path " ]; then
350
+ error " Configuration file $tfw_cfg_path does not exist. Please create a configuration file before starting Tempesta FW."
351
+ fi
352
+ }
353
+
347
354
start ()
348
355
{
349
356
echo " Starting Tempesta..."
350
357
351
358
TFW_STATE=$( sysctl net.tempesta.state 2> /dev/null)
352
359
TFW_STATE=${TFW_STATE##* }
353
360
TFW_LOGGER_EXEC=$( expr " $TFW_STATE " ! = " start" )
361
+
362
+ check_configuration_file_presense
354
363
355
364
if [[ -z ${TFW_STATE} ]]; then
356
365
setup
@@ -397,6 +406,7 @@ stop()
397
406
398
407
reload ()
399
408
{
409
+ check_configuration_file_presense
400
410
update_js_challenge_templates
401
411
echo " Running live reconfiguration of Tempesta..."
402
412
You can’t perform that action at this time.
0 commit comments