From 83c5dd098d48a91653f75b881867c516cc61aec2 Mon Sep 17 00:00:00 2001 From: aguy tech Date: Tue, 8 Dec 2020 09:36:05 +0100 Subject: [PATCH] Remove trailing log minor correction on creating new session --- scripts/continuum_start.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/continuum_start.sh b/scripts/continuum_start.sh index b7fad10..fe7e99f 100755 --- a/scripts/continuum_start.sh +++ b/scripts/continuum_start.sh @@ -2,8 +2,6 @@ CURRENT_DIR="$( dirname "$0" )" -echo -e "\n$(date +%T) IN" >> /tmp/continuum - source "$CURRENT_DIR/helpers.sh" source "$CURRENT_DIR/variables.sh" @@ -16,12 +14,10 @@ clean_session() { local sessions_count="$(tmux list-sessions 2>/dev/null | wc -l)" if /usr/bin/tmux has-session -t "${tmux_server_session_temporary}"; then - # add a new session to preserve server daemon - [ "${sessions_count}" = 1 ] && tmux new-session -d && \ - echo "$(date +%T) add session" >> /tmp/continuum + # add a new session to preserve server daemon when killing temporary session + [ "${sessions_count}" = 1 ] && tmux new-session # kill session - echo "$(date +%T) kill session" >> /tmp/continuum /usr/bin/tmux kill-session -t "${tmux_server_session_temporary}" fi }