Package Details: minecraft-server 1.20.6-1

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: 163
Popularity: 1.23
First Submitted: 2010-11-29 15:52 (UTC)
Last Updated: 2024-04-30 09:10 (UTC)

Dependencies (8)

Required by (0)

Sources (2)

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

Latest Comments

« First ‹ Previous 1 .. 28 29 30 31 32 33 34 35 36 37 Next › Last »

<deleted-account> commented on 2011-09-20 16:28 (UTC)

@JonnyJD: patch added in beta_1.8.1-2

JonnyJD commented on 2011-09-20 09:43 (UTC)

You should not rely on anything being in "/var/run" after a reboot. See: http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/var.html My proposed change (which works on my system where I flush /var/run on reboot): --- minecraft-server-rc.old 2011-09-20 11:13:09.000000000 +0200 +++ minecraft-server-rc 2011-09-20 11:34:51.000000000 +0200 @@ -12,6 +12,10 @@ stat_busy "Starting minecraft-server" if [[ ! -f "$_runDir/server.pid" ]]; then cd "$_srvDir" + if [[ ! -d "$_runDir" ]]; then + mkdir "$_runDir" + chown minecraft:minecraft "$_runDir" + fi su minecraft -c "source /etc/profile && detachtty --dribble-file $_logDir/server_stdout.log --log-file $_logDir/detachtty.log --pid-file $_runDir/server.pid $_runDir/socket /usr/bin/minecraft-server nogui" && add_daemon minecraft-server && stat_done || stat_fail

sonny commented on 2011-09-18 10:56 (UTC)

I prefer using attachtty too since it's a more generic solution.

Zom commented on 2011-09-17 19:27 (UTC)

@yochaigal: The problem with using screen like that is that it doesn't work. You wouldn't be able to attach the screen afterwards, AFAIK.

yochaigal commented on 2011-09-17 18:05 (UTC)

thanks for this - I would also prefer screen rather than using attachtty.

pyropeter commented on 2011-09-14 14:08 (UTC)

1.8.0 is out (md5sum is d3dd75cccaa75b1df1401cc4e76a34d5 )

<deleted-account> commented on 2011-07-29 05:26 (UTC)

@Schnouki I will look at it.

Schnouki commented on 2011-07-27 12:13 (UTC)

Hi. I have some problems with the current rc script: - ck_daemon is not a reliable way of testing if the server is running: if it crashed or was killed by hand, it simply fails - there is currently no way of accessing the server console, which can be useful (e.g. for doing backups, save-off, save-all, do your backup, save-on) So I wrote a new one, based on http://www.minecraftwiki.net/wiki/Server_startup_script. It runs minecraft-server using screen, which makes it possible to send commands to the server from a script, and detects if the server is actually running with pidof. Here it is: http://pastebin.com/fuaL4zrd Please give it a try and feel free to put it in your package if it works fine for you! (don't forget to add screen to depends then :))

voxel commented on 2011-07-08 09:03 (UTC)

1.7.3 is out.