Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Your Own Minecraft Server on a Linode VPS
1. Your Own Minecraft Server on a Linode VPS
#Danols Minecraft Server properties
allow-nether=true
level-name=world
enable-query=false
allow-flight=false
server-port=25565
level-type=DEFAULT
enable-rcon=false
level-seed=Artomix #ht tp://seedhunter.blogspot.com/2012/03/jungle-island.html
server-ip=
max-build-height=256
spawn-npcs=true
white-list=false
spawn-animals=true
online-mode=true
pvp=true
difficulty=3
gamemode=0
max-players=6
spawn-monsters=true
generate-structures=true
view-distance=10
motd=you must survive
Automatic Startup
Compared that what is posted on the Minecraft Wiki the below is a simple startup script using
Debians/Ubuntus start-stop-deamon utility, it does not have the update server, or run file
system in memory option; in my opinion Java+Linux do a good job system caching on
demand and any speeds from running in memory
The server is run under user 'minecraft-server' and group 'daemon' to increase security - this
account and group is created as follows:
# useradd --home-dir /usr/local/minecraft-server --no-create-home -g
daemon --shell /bin/false minecraft-server
# groupadd daemon
Create the startup script as follows
# cd /etc/init.d/
# touch minecraft-server
2. # chmod +x minecraft-server
Paste the following code into the script and make sure to modify the DAEMON_ARGS setting
to reflect your memory allocation.
#!/bin/bash
### BEGIN INIT INFO
# Provides: minecraft_server
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Minecraft server debian init script.
# Author: Daniel Sokolowski
#
### END INIT INFO
# You can use this as a template or symbolic link it into
`/etc/init.d` on Debian system
# PATH should only include /usr/* if it runs after the mountnfs.sh
script
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
DESC="Minecraft Server"
NAME=minecraft_server.jar
SCREENNAME=minecraft-server # the session screen game given
DAEMON="/usr/bin/screen"
DAEMONUSER=minecraft-server
DAEMONGROUP=daemon
# the -Xincgc options enable incremental garbage collector which
slows
# execution but makes more memory efficient.
# -Xmx1024M is the recommended minimum
As a last resort, sleep for some time.
#
# Function that stops the daemon/service
#
do_stop()
# Return
# 0 if daemon has been stopped
3. # 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile
$PIDFILE
RETVAL="$?"
[ "$RETVAL" = 2 ] && return 2
# Wait for children to finish too if this is a daemon that forks
# and if the daemon is only ever run from this initscript.
# If the above conditions are not satisfied then add some other code
# that waits for the process to drop all resources that could be
# needed by services started subsequently. A last resort is to
# sleep for some time.
start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec
$DAEMON
[ "$?" = 2 ] && return 2
# Many daemons don't delete their pidfiles when they exit.
rm -f $PIDFILE
sleep 5s
return "$RETVAL"
#
# Function that sends a SIGHUP to the daemon/service
#
do_reload()
#
# If the daemon can reload its configuration without
4. # restarting (for example, when it is sent a SIGHUP),
# then implement that here.
#
start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --
name $NAME
return 0
case "$1" in
herobrine, factions