#!/bin/bash

# shellcheck disable=SC2034
var_start_py=demo_start_py
var_stop_py=demo_stop_py
var_restart_py=demo_restart_py
var_bin_file=demo_bin_file
var_cache_dir=demo_cache_dir
var_run_shell=demo_run_shell
var_business=demo_business
ps -ef | grep ${var_start_py} | grep ${var_bin_file} | grep ${var_run_shell} | grep -v grep
if [ $? -eq 0 ]; then
    echo "process is running"
    exit 0
fi
python3 ${var_start_py} -b ${var_bin_file} -r ${var_run_shell}