maxxoverclocker/uptimekuma-pfsense-gw-status

empty if

Opened this issue · 1 comments

Hi there.

First of all thank for your script. I've searched for exactly this problem.

I had to modify your script to work, because I got the error message, that a variable is empty. Therefore I added those line and commented out your original part:

if (! $?is_running) then
        echo "is_running is undefined"
else
        if ("$is_running" == "") then
                echo "is_running is empty"
        else
                echo "Another instance of $script_name is already running"
                exit 1
        endif
endif

#if ( $is_running != "" )
#then
#    echo "Another instance of $script_name is already running."
#    exit 1
#endif

Greetings

Hi there.

First of all thank for your script. I've searched for exactly this problem.

I had to modify your script to work, because I got the error message, that a variable is empty. Therefore I added those line and commented out your original part:

if (! $?is_running) then
        echo "is_running is undefined"
else
        if ("$is_running" == "") then
                echo "is_running is empty"
        else
                echo "Another instance of $script_name is already running"
                exit 1
        endif
endif

#if ( $is_running != "" )
#then
#    echo "Another instance of $script_name is already running."
#    exit 1
#endif

Greetings

Thank you for posting this! i was having the same exact problem and went nuts for over 2 hours. i then came across your post and it resolved my issue right away