diff options
author | Gordian Edenhofer | 2016-01-26 00:18:20 +0100 |
---|---|---|
committer | Gordian Edenhofer | 2016-01-26 00:18:20 +0100 |
commit | 130c71b396936b49f85e4dc571092a70ea538bfa (patch) | |
tree | 10b2c3b0e101b7e63dbf1bec9b3207b6a52ba0db /minecraftd.sh | |
parent | b94e3db3db0e96c489bc4a40fc7c8c75246cb56e (diff) | |
download | aur-130c71b396936b49f85e4dc571092a70ea538bfa.tar.gz |
Upgpkg: 1.8.9-2
Variable name for the management script's name
Diffstat (limited to 'minecraftd.sh')
-rwxr-xr-x | minecraftd.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/minecraftd.sh b/minecraftd.sh index 212accd68fb6..cad4fb7fbc55 100755 --- a/minecraftd.sh +++ b/minecraftd.sh @@ -18,6 +18,9 @@ MAXHEAP="${MAXHEAP:-1024M}" THREADS="${THREADS:-1}" JAVA_PARMS="${JAVA_PARMS:-"-Xmx${MAXHEAP} -Xms${MINHEAP} -XX:ParallelGCThreads=${THREADS}"}" +# The actual program name +declare -r myname="minecraftd" + # Check for sudo rigths if [ $(sudo whoami) != "root" ]; then echo "You must have sudo access in order to use this script." @@ -222,11 +225,11 @@ server_console() { # Help function, no arguments required help() { - cat <<- 'EOF' + cat <<-EOF This script was design to easily control any minecraft server. Quite every parameter for a given minecraft server derivative can be altered by editing the variables in the configuration file. - Usage: minecraftd {start|stop|status|backup|command <command>|console} + Usage: $myname {start|stop|status|backup|restore|command <command>|console} start Start the minecraft server stop Stop the minecraft server restart Restart the minecraft server |