forked from iTXTech/Nemisys
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathstart.sh
More file actions
39 lines (29 loc) · 692 Bytes
/
start.sh
File metadata and controls
39 lines (29 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# This is the shell startup file for Nemisys.
# Input ./start.sh while in the server directory
# to start the server.
#Change this to "true" to
#loop Nemisys after restart!
DO_LOOP="false"
###############################
# DO NOT EDIT ANYTHING BELOW! #
###############################
clear
NEMISYS_FILE=""
if [ "$NEMISYS_FILE" == "" ]; then
if [ -f ./nemisys*.jar ]; then
NEMISYS_FILE="./nemisys-1.0dev.jar"
else
echo "[ERROR] Nemisys JAR not found!"
exit 1
fi
fi
LOOPS=0
while [ "$LOOPS" -eq 0 ] || [ "$DO_LOOP" == "true" ]; do
if [ "$DO_LOOP" == "true" ]; then
java -jar "$NEMISYS_FILE" $@
else
exec java -jar "$NEMISYS_FILE" $@
fi
((LOOPS++))
done