diff options
author | Karel Kočí <cynerd@email.cz> | 2016-03-07 10:35:24 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-03-07 10:35:24 +0100 |
commit | ec37e36a622614ac233d986911889bac1e59fc46 (patch) | |
tree | ab3e539841c0e980a1486283ddb34626f43e79fb /example.conf | |
parent | d9bbff52b91feb856325f52880ede00ecd1767dd (diff) | |
download | mcserver-wrapper-ec37e36a622614ac233d986911889bac1e59fc46.tar.gz mcserver-wrapper-ec37e36a622614ac233d986911889bac1e59fc46.tar.bz2 mcserver-wrapper-ec37e36a622614ac233d986911889bac1e59fc46.zip |
Cleaner output, input and output thread runs as daemons
Output printing is now more standardized across script and allows
defined Minecraft server like output.
Input and output thread for server is now implemented more simple as
daemons and wrapper exit is handled by waiting for server exit.
Example configuration is little bit changed. It adds type information
for all options.
Vim configuration line added for both files (mcwrapper and example.conf).
Diffstat (limited to 'example.conf')
-rw-r--r-- | example.conf | 45 |
1 files changed, 26 insertions, 19 deletions
diff --git a/example.conf b/example.conf index a267735..9d656ea 100644 --- a/example.conf +++ b/example.conf @@ -1,29 +1,36 @@ -# This is exaple configuration for mcwrapper +# This is example configuration for mcwrapper # Use Python3 syntax to specify configuration. ############################################## +# vim: expandtab ft=python ts=4 sw=4 sts=4: # This is default identifier. It is used if no identifier is provided as argument # to mcwrapper. This is specially handy when you have only one identifier to be # run all the time. # Uncommenting this option if you want such feature. +# Type: string #identifier = 'exampleserver' +# Definition of Minecraft server. class exampleserver: - # Directory in which Minecraft server will be executed. It is where its files - # will be placed - directory = '~/minecraft', - # Command to start Minecraft server. It is executed in directory specified in - # option "directory". - # Suggested is to always append "nogui" no disable graphical interface. - command = "java -jar mcs.jar nogui", - # Directory where wrapper writes files signaling status of server and online - # players. - # In default it points to directory in /dev/shm. This means that files are in - # such case stored only in ram. - statusdir = '/dev/shm/mcwrapper-exampleserver', - # Automatic server shutdown when no player is online. This option defines time - # in minutes before that happens. It is measured from time of last player - # leaving server. - # Set this value to less or equal zero or comment it to disable automatic - # shutdown. - timeout = 15 + # Directory in which Minecraft server will be executed. It is where its files + # will be placed + # Type: string + directory = '~/minecraft' + # Command to start Minecraft server. It is executed in directory specified in + # option "directory". + # Suggested is to always append "nogui" no disable graphical interface. + # Type: string + command = "java -jar mcs.jar nogui" + # Directory where wrapper writes files signaling status of server and online + # players. + # In default it points to directory in /dev/shm. This means that files are in + # such case stored only in ram. + # Type: string + statusdir = '/dev/shm/mcwrapper-exampleserver' + # Automatic server shutdown when no player is online. This option defines time + # in minutes before that happens. It is measured from time of last player + # leaving server. + # Set this value to less or equal zero or comment it to disable automatic + # shutdown. + # Type: int + timeout = 15 |