|
|
@@ -56,6 +56,18 @@ fn_start_teamspeak3(){
|
|
|
|
|
|
fn_start_tmux(){
|
|
|
fn_parms
|
|
|
+
|
|
|
+ # check for tmux size variables
|
|
|
+ if [[ "${servercfgtmuxwidth}" =~ ^[0-9]+$ ]]; then
|
|
|
+ sessionwidth="${servercfgtmuxwidth}"
|
|
|
+ else
|
|
|
+ sessionwidth="80"
|
|
|
+ fi
|
|
|
+ if [[ "${servercfgtmuxheight}" =~ ^[0-9]+$ ]]; then
|
|
|
+ sessionheight="${servercfgtmuxheight}"
|
|
|
+ else
|
|
|
+ sessionheight="23"
|
|
|
+ fi
|
|
|
|
|
|
# Log rotation
|
|
|
check_status.sh
|
|
|
@@ -81,7 +93,7 @@ fn_start_tmux(){
|
|
|
# Create lockfile
|
|
|
date > "${rootdir}/${lockselfname}"
|
|
|
cd "${executabledir}"
|
|
|
- tmux new-session -d -s "${servicename}" "${executable} ${parms}" 2> "${scriptlogdir}/.${servicename}-tmux-error.tmp"
|
|
|
+ tmux new-session -d -x "${sessionheight}" -y "${sessionwidth}" -s "${servicename}" "${executable} ${parms}" 2> "${scriptlogdir}/.${servicename}-tmux-error.tmp"
|
|
|
|
|
|
# tmux pipe-pane not supported in tmux versions < 1.6
|
|
|
if [ "$(tmux -V|sed "s/tmux //"|sed -n '1 p'|tr -cd '[:digit:]')" -lt "16" ]; then
|