|
@ -181,13 +181,13 @@ fn_start_tmux() { |
|
|
echo -en "\n" |
|
|
echo -en "\n" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
check.sh |
|
|
|
|
|
|
|
|
|
|
|
# If user ran the start command monitor will become enabled. |
|
|
# If user ran the start command monitor will become enabled. |
|
|
if [ "${firstcommandname}" == "START" ] || [ "${firstcommandname}" == "RESTART" ]; then |
|
|
if [ "${firstcommandname}" == "START" ] || [ "${firstcommandname}" == "RESTART" ]; then |
|
|
date '+%s' > "${lockdir:?}/${selfname}-monitoring.lock" |
|
|
date '+%s' > "${lockdir:?}/${selfname}-monitoring.lock" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
check.sh |
|
|
|
|
|
|
|
|
# If the server already started dont start again. |
|
|
# If the server already started dont start again. |
|
|
if [ "${status}" != "0" ]; then |
|
|
if [ "${status}" != "0" ]; then |
|
|
fn_print_dots "${servername}" |
|
|
fn_print_dots "${servername}" |
|
|