mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2026-06-28 01:58:34 +00:00
add minecraft service
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
cleanup() {
|
||||
./mcrcon -p password stop
|
||||
}
|
||||
|
||||
trap 'cleanup' TERM
|
||||
|
||||
java -Xmx1024M -Xms1024M -jar server.jar nogui &
|
||||
wait $! # wait for SIGTERM
|
||||
wait $! # wait for server to stop
|
||||
Reference in New Issue
Block a user