diff options
author | Philip Abernethy | 2015-08-07 23:28:51 +0200 |
---|---|---|
committer | Philip Abernethy | 2015-08-07 23:28:51 +0200 |
commit | 8622582e313ccb2efbdbb91b8aa59ec4d5818e62 (patch) | |
tree | 88796821be21114ce5873724ed3659e85b947c67 /tshock.sh | |
parent | 62e9b9908c56228af628f209d1eb42b57b6a7229 (diff) | |
download | aur-8622582e313ccb2efbdbb91b8aa59ec4d5818e62.tar.gz |
Updated to 4.3.8
Diffstat (limited to 'tshock.sh')
-rw-r--r-- | tshock.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tshock.sh b/tshock.sh index 41c9dd0d86f8..989f5741851b 100644 --- a/tshock.sh +++ b/tshock.sh @@ -56,8 +56,8 @@ TMUX_CONSOLE=tshock-console-${INSTANCE} case "$1" in start) - if [ ! $(tmux has -t ${TMUX_CONSOLE}) ]; then - tmux new-session -d -s ${TMUX_CONSOLE} -d "cd ${BASEDIR}; mono TerrariaServer.exe -port ${PORT} -worldpath ${WORLDDIR} -world ${WORLDDIR}/${WORLD}.wld -autocreate ${SIZE}" + if [ ! $(tmux has -t ${TMUX_CONSOLE} &> /dev/null) ]; then + tmux new-session -d -s ${TMUX_CONSOLE} -d "cd ${BASEDIR}; mono --server --gc=sgen -O=all TerrariaServer.exe -port ${PORT} -worldpath ${WORLDDIR} -world ${WORLDDIR}/${WORLD}.wld -autocreate ${SIZE}" if [ $? -gt 0 ]; then exit 1 fi @@ -79,7 +79,7 @@ case "$1" in ;; install) - bash -c "cd ${BASEDIR}; mono TerrariaServer.exe" + bash -c "cd ${BASEDIR}; mono --server --gc=sgen -O=all TerrariaServer.exe -worldpath ${WORLDDIR}" ;; *) |