summarylogtreecommitdiffstats
path: root/tshock.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tshock.sh')
-rw-r--r--tshock.sh6
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}"
;;
*)