In a recent commit I changed how the idle server behaves if an admin is connected to the console. To be specific: The player checking is paused as long as someone is
attached to the session. Not only does it make sense for any admin which wants to monitor the console, it also removes annoying list invocations from the console while e.g. typing in it.
In case someone was relying on the previous state, please be sure to let me now ASAP and I will revert the change if necessary.
Search Criteria
Package Details: minecraft-server 1.21.3-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/minecraft-server.git (read-only, click to copy) |
---|---|
Package Base: | minecraft-server |
Description: | Minecraft server unit files, script, and jar |
Upstream URL: | https://minecraft.net/ |
Keywords: | bash minecraft official script server |
Licenses: | custom |
Conflicts: | minecraft-canary, minecraft-server-systemd |
Submitter: | sorcix |
Maintainer: | edh |
Last Packager: | edh |
Votes: | 164 |
Popularity: | 0.079457 |
First Submitted: | 2010-11-29 15:52 (UTC) |
Last Updated: | 2024-10-23 19:51 (UTC) |
Dependencies (8)
- awk (gawk-gitAUR, busybox-coreutilsAUR, gawk)
- bash (bash-devel-static-gitAUR, bash-devel-gitAUR, busybox-coreutilsAUR, bash-gitAUR)
- java-runtime-headless (jre10AUR, jre12AUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, jre7AUR, amazon-corretto-16AUR, jdk16-adoptopenjdkAUR, jdk8-armAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jre11-jbr-xdg-headlessAUR, jre16-openjdk-headlessAUR, jre14-openjdk-headlessAUR, jre15AUR, jre14AUR, jre13AUR, jre16AUR, jre18-openjdk-headlessAUR, amazon-corretto-19-binAUR, liberica-jre-11-full-binAUR, jdk13-openjdk-binAUR, liberica-jre-8-full-binAUR, jre-openj9-headlessAUR, jre12-openjdk-headlessAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, zulu-15-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jre11AUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jre13-openjdk-headlessAUR, jre15-openjdk-headlessAUR, jdk8-openj9-binAUR, jre-ltsAUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, liberica-nik-24-full-binAUR, zulu-17-binAUR, zulu-11-binAUR, zulu-8-binAUR, liberica-jdk-17-full-binAUR, liberica-jdk-11-lite-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-binAUR, jre19-openjdk-headlessAUR, jdk17-jetbrains-binAUR, zulu-jdk-fx-binAUR, zing-21-binAUR, zing-8-binAUR, jre17AUR, java-openjdk-binAUR, jre21-zulu-binAUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, jre17-zulu-binAUR, jdk21-temurinAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk11-temurinAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, jdk17-temurinAUR, zulu-21-binAUR, jdk-temurinAUR, jre8AUR, jdk8AUR, zulu-17-fx-binAUR, jdk8-perfAUR, zulu-jre-fx-binAUR, zulu-fx-binAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, jdk-openj9-binAUR, jdk11-openj9-binAUR, jdk17-openj9-binAUR, jre-jetbrainsAUR, jre-openjdk-wakefield-headlessAUR, jre-openjdk-wakefieldAUR, jdk-openjdk-wakefieldAUR, jdk21-openj9-binAUR, java-openjdk-ea-binAUR, zulu-23-binAUR, jreAUR, jdkAUR, jdk21-jetbrains-binAUR, jdk21-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jre-openjdk, jre-openjdk-headless, jre11-openjdk, jre11-openjdk-headless, jre17-openjdk, jre17-openjdk-headless, jre21-openjdk, jre21-openjdk-headless, jre8-openjdk-headless)
- sed (busybox-coreutilsAUR, sed-gitAUR)
- sudo (fake-sudoAUR, polkit-fakesudoAUR, sudo-gitAUR, doas-sudo-shimAUR, doas-sudo-shim-minimalAUR, sudo-hgAUR, sudo-selinuxAUR, fudo-gitAUR)
- tmux (tmux-tcl-gitAUR, tmux-xdg-gitAUR, tmux-sixel-gitAUR, tmux-gitAUR)
- netcat (nmap-netcatAUR, openbsd-netcat-gitAUR, gnu-netcat-svnAUR, gnu-netcat, openbsd-netcat) (optional) – required in order to suspend an idle server
- tar (tar-gitAUR, busybox-coreutilsAUR) (optional) – needed in order to create world backups
Required by (0)
Sources (2)
Latest Comments
« First ‹ Previous 1 .. 8 9 10 11 12 13 14 15 16 17 18 .. 37 Next › Last »
edh commented on 2016-05-20 10:05 (UTC)
edh commented on 2016-04-18 18:58 (UTC) (edited on 2016-04-18 18:59 (UTC) by edh)
@Svenstaro
Actually my servers tend to run smoothly. Please open a forum thread with your specific problems and send me a link. I would be glad to help.
However I do not like to add those lines to the service file since it would render the server-stop functionality of the script useless if the systemd service is running. The 'always' parameter seems very aggresive [1] to me and not desirable. Even something like 'on-abnormal' might not be a good choice for everybody since especially for small servers uptime is not as important and one would be better of preventing those errors instead of ignoring them.
[1] https://www.freedesktop.org/software/systemd/man/systemd.service.html#Restart=
svenstaro commented on 2016-04-18 18:40 (UTC)
I recommend setting
[Service]
Restart=always
RestartSec=5s
in the minecraftd.service file. Minecraft server likes to crash.
lesebas commented on 2016-03-29 20:59 (UTC)
Hello,
You're right about the use of this comments thread, sorry. I have finally solved my problem by installing the server on another computer on my local network. Everything works fine, I don't understand why I can't make it work on another similar archlinux machine. Thanks for your support.
edh commented on 2016-03-29 18:07 (UTC) (edited on 2016-03-29 18:27 (UTC) by edh)
@lesebas
I would very much appriciate if you could open a forum thread or something similar for this discussion, since it seems to be only you having those kinds of problems. I initially thought that the strange behavior was somehow affiliated with the reports about the transition to the idle-server. However since this is probably not the case, it is best to leave the comment section. It is not the right place for this.
Concerning your problem: Please explain in detail what commands you have executed to come to this point and what the output of each command was. Your explained behaviour seems like you are leaving out some essential error messages, like insufficient sudo access. What happened when you ran the server as minecraft user with merely java -jar <main_executable>?
Have you read and understood the ArchWiki entry, I wrote about the script? It should give you a small impression of what is done.
lesebas commented on 2016-03-29 17:42 (UTC)
Hello I went through the initial installation process from scratch and that's OK. But when I start the server for the first time the eula.txt file is not created?
edh commented on 2016-03-29 15:55 (UTC)
@sowieso
This sounds like a decent plan. It really is annoying in those cases.
sowieso commented on 2016-03-29 13:20 (UTC)
How about not to print the countdown on shutdown when nobody is connected? This cool feature gets annoying when you have to restart several times. The code to check for an empty server is already in the idle_server_daemon() function, so it is not difficult to implement.
edh commented on 2016-03-20 19:13 (UTC)
@lesebas
What is your understanding of the "saved old server directory"? On an update mereley a new minecraft_server.${pkgver}.jar is added and the link pointing to that .jar gets changed. All other files, e.g. logs world-files etc., stay the same.
To me it seams like you messed up your server pretty badly: First of all the minecraft_server.${pkgver}.jar is missing a dot in its name right in front of the version. Additionally the server logs by default everything to the logs directory. Without further configuration it should always be created if it was not present.
I have tried multiple times and mimiced your state of files on my machine, however I can still not reproduce your result.
Try to start the server manually with java -jar and no further arguments and see what happens. Furthermore you should make sure that the installation of this package succeeded without errors and if not fix those problems first.
lesebas commented on 2016-03-20 18:27 (UTC)
@edh
Unfortunately in the saved old server directory the latest.log is empty. In the new directory, there is no sub-folder and only 3 files :
- minecraft_server1.9.jar
- minecraft_server.jar
- server.properties (empty file)
Pinned Comments
edh commented on 2016-06-18 18:24 (UTC) (edited on 2021-10-02 08:19 (UTC) by edh)
To get an overview of the available options provided by the management script, be sure to have a look at the help page or read the according section on the ArchWiki article [1].
You can quit the console without shutting down the server by press ctrl+a d (first ctrl+a and after releasing the buttons press d; ctrl+b also works). This will detach your input from the server console. The attaching and detaching is done with tmux (previously GNU screen) since it lets you view and type into the console, send single commands to it and keep it alive without a connected user. Take a look at the the command overview at the ArchWiki [2] to get a feel for its power. (@carmelo12341)
[1] https://wiki.archlinux.org/title/Minecraft#Setup [2] https://wiki.archlinux.org/title/Tmux