9 lines
268 B
Bash
Executable file
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
|