Adding batt check and fixed MC to use full path

This commit is contained in:
Henry Corse committed 2022-12-25 15:05:36 -05:00
1 parent 169dd47aeb
commit 2d04a5bbf6
4 files changed
+18 -1

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ start() {
status
exit 0
fi
screen -S minecraft -dm java -Xms1G -Xmx5G -jar server.jar nogui
screen -S minecraft -dm java -Xms1G -Xmx5G -jar /opt/minecraft/server.jar nogui
pgrep -P "$(screen -list | sed -E -n 's/\s*([0-9]+).minecraft.*/\1/p')" > $PID
}