forked from msmhq/msm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
msm.conf
207 lines (160 loc) · 8.28 KB
/
msm.conf
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
#
# Minecraft Server Manager Configuration File
# ===========================================
#
#
# User
# ----
# The user which Minecraft Server Manager commands will be executed as.
# Also used by default for starting servers who do not specify an individual
# server user.
USERNAME="minecraft"
# Directory Locations
# -------------------
# These values are very important. They define where MSM stores various files
# Where new servers are stored
SERVER_STORAGE_PATH="/opt/msm/servers"
# Where runnable jar files for use by servers are stored
JAR_STORAGE_PATH="/opt/msm/jars"
# Where versioning data is stored to help MSM accommodate all Minecraft versions
VERSIONING_STORAGE_PATH="/opt/msm/versioning"
# Change this to "true" to allow MSM to use RAMDisk for storing worlds.
# Note: RAMDisk will only be used for worlds enabled as "in ram".
RAMDISK_STORAGE_ENABLED="true"
# Where RAM enabled worlds are stored
# This needs to be a path located inside the mounted ramdisk for your system
# under Ubuntu this would be "/dev/shm", so "/dev/shm/msm" would be a good
# location. This is ignored if RAMDISK_STORAGE_ENABLED is not "true"
RAMDISK_STORAGE_PATH="/dev/shm/msm"
# Quick IMPORTANT note:
# The following three paths are used to store backups of your servers which
# MSM creates periodically. Backups are useful if a world becomes unplayable
# and needs to be restored to an earlier point in time. Or maybe a new plugin
# for a server corrupts some files. In these cases you can restore to a
# backup from these directories.
#
# If you want protection for disk failure also, be sure to specify paths to a
# separate disk. This can be achieved by mounting an external hard drive, or
# a NAS and locating the following paths there.
# Where "WorldEdit snapshot" compatible world backups are stored.
WORLD_ARCHIVE_PATH="/opt/msm/archives/worlds"
# Where archived logs are stored, when a servers logs are "rolled":
LOG_ARCHIVE_PATH="/opt/msm/archives/logs"
# Where complete server backups are stored:
BACKUP_ARCHIVE_PATH="/opt/msm/archives/backups"
# Server properties file to be created alongside with server creation,
# relative to server directory
SERVER_PROPERTIES="server.properties"
# MSM properties file which allows default value
# to be overriden on a server basis,
# absolute path if starting with a slash
# else relative to server directory
# properties are lowercase and prefixed with "msm-"
# Exemple :
# to override DEFAULT_RAM value for a server to 4096
# add line "msm-ram=4096" to this file
# {SERVER_NAME} tag is available
SERVER_MSM_PROPERTIES="server.properties"
# Server Defaults
# ---------------
# These values are the default values used when a server does not override
# them in its individual config file.
# They are also the default values used when a new server is created, without
# specifying any arguments.
# Any settings in the Server Defaults sections ending in PATH are relative
# to the server directory. That is unless an absolute path is given (one
# starting with a forward slash '/'.)
# User which stars the server, and interacts with it
DEFAULT_USERNAME="minecraft"
# The name under which to run a servers screen session, each is made unique
# by including the {SERVER_NAME} tag.
DEFAULT_SCREEN_NAME="msm-{SERVER_NAME}"
# A directory name relative to the server directory where worlds are stored
DEFAULT_WORLD_STORAGE_PATH="worldstorage"
# A directory name relative to the server directory where old worlds are stored
# These worlds will cannot be used by the server and will not be saved when
# backing up all worlds. But will be included in a complete server backup.
DEFAULT_WORLD_STORAGE_INACTIVE_PATH="worldstorage_inactive"
# The default command to generate a complete server backup,
# allows you to use compression method of your choice,
# custom options (exclude directory for exemple),
# or even a complete different method, rsync for exemple
# Tags:
# {SERVER_STORAGE_PATH} : path where are stored servers
# {SERVER_NAME} : dirname of the server to be saved
# {BACKUP_ARCHIVE_PATH} : path where the backup should be generated
# exemples:
# - ZIP
# method used with previous version,
# selected by default to avoid surprise after update
# DEFAULT_COMPLETE_BACKUP_COMMAND="cd '{SERVER_STORAGE_PATH}' && zip -rqy '{BACKUP_ARCHIVE_PATH}/$(date "+%F-%H-%M-%S").zip' '{SERVER_NAME}'"
# - ZIP with follow symlink option
# same as previous one, but symlinks are replaced by their targets
# DEFAULT_COMPLETE_BACKUP_COMMAND="cd '{SERVER_STORAGE_PATH}' && zip -rq '{BACKUP_ARCHIVE_PATH}/$(date "+%F-%H-%M-%S").zip' '{SERVER_NAME}'"
# - TAR+GZ
# allowing this configuration was the main purpose of this modification,
# may helps you if having memory problems with zip
# DEFAULT_COMPLETE_BACKUP_COMMAND="cd '{SERVER_STORAGE_PATH}' && tar -czf '{BACKUP_ARCHIVE_PATH}/$(date "+%F-%H-%M-%S").tar.gz' '{SERVER_NAME}'"
# - TAR+GZ with follow symlink option
# same as previous one, but symlinks are replaced by their targets
# DEFAULT_COMPLETE_BACKUP_COMMAND="cd '{SERVER_STORAGE_PATH}' && tar -czhf '{BACKUP_ARCHIVE_PATH}/$(date "+%F-%H-%M-%S").tar.gz' '{SERVER_NAME}'"
# - TAR+GZ with exclude caches
# any directory containing the standard CACHEDIR.TAG won't be included in backup
# CACHEDIR.TAG file specifications here:
# http://www.brynosaurus.com/cachedir/spec.html
# DEFAULT_COMPLETE_BACKUP_COMMAND="cd '{SERVER_STORAGE_PATH}' && tar -czf '{BACKUP_ARCHIVE_PATH}/$(date "+%F-%H-%M-%S").tar.gz' --exclude-caches '{SERVER_NAME}'"
DEFAULT_COMPLETE_BACKUP_COMMAND="cd '{SERVER_STORAGE_PATH}' && zip -rqy '{BACKUP_ARCHIVE_PATH}/$(date "+%F-%H-%M-%S").zip' '{SERVER_NAME}'"
# The location of standard Minecraft server files, relative to the
# server directory
DEFAULT_LOG_PATH="server.log"
DEFAULT_WHITELIST_PATH="white-list.txt"
DEFAULT_BANNED_PLAYERS_PATH="banned-players.txt"
DEFAULT_BANNED_IPS_PATH="banned-ips.txt"
DEFAULT_OPS_PATH="ops.txt"
# The location of the jar file to execute, relative to the server directory
DEFAULT_JAR_PATH="server.jar"
# The amount of memory to dedicate to a server (in MB)
DEFAULT_RAM="1024"
# The command used to start the server. You may use the following tags which
# will be replaced:
#
# {RAM} - Gets replaced with the amount of RAM specified for the server
# {JAR} - Gets replaced with the location of the jar file for the server
#
# Hard coding values here (not using {MEMORY} and {JAR} tags) will prevent
# servers from individually overriding those values.
DEFAULT_INVOCATION="java -Xms{RAM}M -Xmx{RAM}M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts -jar {JAR} nogui"
# The default time to delay between warning players the server is stopping and
# actually stopping the server:
DEFAULT_STOP_DELAY=10
# The default time to delay between warning players the server is restarting
# and actually restarting the server:
DEFAULT_RESTART_DELAY=10
# The default message to send to players on a server which is about to be
# shut down. You may use the tag "{DELAY}" to specify the time delay
# before shutdown:
DEFAULT_MESSAGE_STOP="SERVER SHUTTING DOWN IN {DELAY} SECONDS!"
# The default message sent to players on a server which was in the process of
# shutting down, but was aborted by an admin probably pressing Ctrl+C.
DEFAULT_MESSAGE_STOP_ABORT="Server shut down aborted."
# The default message sent to players on a server which is about to be
# restarted. You may use the tag "{DELAY}" to specify the time delay before
# the server restarts:
DEFAULT_MESSAGE_RESTART="SERVER REBOOT IN {DELAY} SECONDS!"
# The default message sent to players on a server which was in the process of
# restarting, but was aborted by an admin probably pressing Ctrl+C.
DEFAULT_MESSAGE_RESTART_ABORT="Server reboot aborted."
# The default message to send to players when a server begins backing up
# its worlds:
DEFAULT_MESSAGE_WORLD_BACKUP_STARTED="Backing up world."
# The default message to send to players when a server has finished backing
# up its worlds:
DEFAULT_MESSAGE_WORLD_BACKUP_FINISHED="Backup complete."
# The default message to send to players when a server begins backing up the
# entire server directory:
DEFAULT_MESSAGE_COMPLETE_BACKUP_STARTED="Backing up entire server."
# The default message to send to players when a server finishes backing up the
# entire server directory:
DEFAULT_MESSAGE_COMPLETE_BACKUP_FINISHED="Backup complete."
# Default ps columns to output with command ps
DEFAULT_PS_COLUMNS="%cpu,%mem,rss,vsz"