|
@@ -177,6 +177,7 @@ fn_monitor_check_session() {
|
|
|
fn_script_log_error "Checking session: There are PIDS with identical tmux sessions running"
|
|
fn_script_log_error "Checking session: There are PIDS with identical tmux sessions running"
|
|
|
fn_script_log_error "Checking session: Killing all tmux sessions with the socketname name ${socketname} and session name ${sessionname}"
|
|
fn_script_log_error "Checking session: Killing all tmux sessions with the socketname name ${socketname} and session name ${sessionname}"
|
|
|
pkill -f "tmux -L ${socketname} new-session -d -x ${sessionwidth} -y ${sessionheight} -s ${sessionname}"
|
|
pkill -f "tmux -L ${socketname} new-session -d -x ${sessionwidth} -y ${sessionheight} -s ${sessionname}"
|
|
|
|
|
+ command_restart.sh
|
|
|
core_exit.sh
|
|
core_exit.sh
|
|
|
# Check for tmux pids with the same tmux session and socket names. This will reduce issues with migration to release v23.5.0. #4296
|
|
# Check for tmux pids with the same tmux session and socket names. This will reduce issues with migration to release v23.5.0. #4296
|
|
|
elif [ "$(pgrep -fc -u "${USER}" "tmux -L ${sessionname} new-session -d -x ${sessionwidth} -y ${sessionheight} -s ${sessionname}")" != "0" ]; then
|
|
elif [ "$(pgrep -fc -u "${USER}" "tmux -L ${sessionname} new-session -d -x ${sessionwidth} -y ${sessionheight} -s ${sessionname}")" != "0" ]; then
|
|
@@ -186,6 +187,7 @@ fn_monitor_check_session() {
|
|
|
fn_script_log_error "Checking session: PIDS with the same tmux session and socket names are running"
|
|
fn_script_log_error "Checking session: PIDS with the same tmux session and socket names are running"
|
|
|
fn_script_log_error "Checking session: Killing session with the socketname name ${sessionname} and session name ${sessionname}"
|
|
fn_script_log_error "Checking session: Killing session with the socketname name ${sessionname} and session name ${sessionname}"
|
|
|
pkill -f "tmux -L ${sessionname} new-session -d -x ${sessionwidth} -y ${sessionheight} -s ${sessionname}"
|
|
pkill -f "tmux -L ${sessionname} new-session -d -x ${sessionwidth} -y ${sessionheight} -s ${sessionname}"
|
|
|
|
|
+ command_restart.sh
|
|
|
core_exit.sh
|
|
core_exit.sh
|
|
|
# Check for tmux pids that are using the old type of tmux session. This will reduce issues with migration to release v23.5.0. #4296
|
|
# Check for tmux pids that are using the old type of tmux session. This will reduce issues with migration to release v23.5.0. #4296
|
|
|
elif [ "$(pgrep -fc -u "${USER}" "tmux new-session -d -x ${sessionwidth} -y ${sessionheight} -s ${sessionname}")" != "0" ]; then
|
|
elif [ "$(pgrep -fc -u "${USER}" "tmux new-session -d -x ${sessionwidth} -y ${sessionheight} -s ${sessionname}")" != "0" ]; then
|
|
@@ -195,6 +197,7 @@ fn_monitor_check_session() {
|
|
|
fn_script_log_error "Checking session: PIDS with old type tmux session are running"
|
|
fn_script_log_error "Checking session: PIDS with old type tmux session are running"
|
|
|
fn_script_log_error "Checking session: Killing session with the session name ${sessionname}"
|
|
fn_script_log_error "Checking session: Killing session with the session name ${sessionname}"
|
|
|
pkill -f "tmux new-session -d -x ${sessionwidth} -y ${sessionheight} -s ${sessionname}"
|
|
pkill -f "tmux new-session -d -x ${sessionwidth} -y ${sessionheight} -s ${sessionname}"
|
|
|
|
|
+ command_restart.sh
|
|
|
core_exit.sh
|
|
core_exit.sh
|
|
|
elif [ "${status}" != "0" ]; then
|
|
elif [ "${status}" != "0" ]; then
|
|
|
fn_print_ok "Checking session: "
|
|
fn_print_ok "Checking session: "
|