This repository has been archived on 2024-07-18. You can view files and clone it, but cannot push or open issues or pull requests.
lwb6/build-tools/start-server.sh

9 lines
268 B
Bash
Executable file

#!/bin/sh
BASE="`dirname $0`"
cd "$BASE/server"
source server-config.sh
if [ "x$1" = "x--debug" ]; then
java $LOG -jar legacyworlds-server-main-*.jar
else
( java $LOG -jar legacyworlds-server-main-*.jar </dev/null >/dev/null 2>&1 & ) </dev/null >/dev/null 2>&1 &
fi