File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,22 @@ A basic startup script for minecraft-server
3
3
4
4
## Assumptions
5
5
6
- * You already have minecraft-server installed in ` /usr/local/minecraft-server `
6
+ * You already have minecraft-server installed in ` WORKDIR ` (default: ` /usr/local/minecraft-server ` )
7
7
8
8
## Installation
9
9
10
10
1 . Simply drop the [ ` minecraft-server ` ] ( minecraft-server ) file into ` /etc/init.d `
11
- 2 . Adjust the ` -Xms ` and ` -Xmx ` in the ` start() ` function to match your system's capabilities
11
+ 2 . Adjust the following variables at the top of the file to match your system's capabilities:
12
+ 1 . ` WORKDIR ` - path where minecraft-server is installed
13
+ 2 . ` MIN_MEMORY_ALLOCATION ` - Initial memory allocation pool for JVM
14
+ 3 . ` MAX_MEMORY_ALLOCATION ` - Maximum memory allocation pool for JVM
15
+
16
+ ## Usage
17
+
18
+ * Start Minecraft Server: ` service minecraft-server start `
19
+ * Stop Minecraft Server: ` service minecraft-server stop `
20
+ * Restart Minecraft Server: ` service minecraft-server restart `
21
+ * Get Minecraft Server Status: ` service minecraft-server status `
12
22
13
23
## Notes
14
24
You can’t perform that action at this time.
0 commit comments