![]() ![]() iregex ".*/\\(FTBServer\\|craftbukkit\\|spigot\\|paper\\|forge\\|minecraft_server\\).The Institute comprises 33 Full and 14 Associate Members, with 16 Affiliate Members from departments within the University of Cape Town, and 17 Adjunct Members based nationally or internationally. ![]() # Solves the problem many encountered when starting the service where it would fail with the error 'no screen session found'. Found to work better as this creates the screen session prior to invoking java to run the server. # due to minecraft 1.17 requiring Java 16 # Java 14 so this should be commented out if you need to upgrade # -XX: CMSClassUnloadingEnabled was deprecated and removed in #ExecStartPre= /bin/sh -c 'chmod 777 /run/screen' # Change memory values in environment fileĮnvironmentFile=-/opt/minecraft/%i/nf # It is hence recommended to turn this on for most services.Įnvironment="MCMINMEM=512M" "MCMAXMEM=1024M" "SHUTDOWN_DELAY=5" "POST_SHUTDOWN_DELAY=10" It is recommended to turn this on for most services that do not need special file systems or extra kernel modules to work # Block module system calls, also /usr/lib/modules. It is recommended to turn this on for most services. # /proc/sys, /sys, /proc/sysrq-trigger, /proc/latency_stats, /proc/acpi, /proc/timer_stats, /proc/fs and /proc/irq will be read-only within the unit. It is recommended to enable this setting for all long-running services (in particular network-facing ones). # /home, /root and /run/user seem to be empty from within the unit. # Read only mapping of /usr /boot and /etc # Users Database is not available from within the unit, only root and minecraft is available, everybody else is nobody # Solves the issue where the minecraft server will endlessly restart itself Create the Systemd Unit file nano and the following:.Now you need to create the user for the service: useradd -system -shell /usr/sbin/nologin -home /opt/minecraft -g minecraft minecraft.Create the minecraft group for the minecraft user we'll add in the next step: groupadd minecraft. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |