diff --git a/.SRCINFO b/.SRCINFO index 337262b..57def0d 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -28,6 +28,6 @@ pkgbase = minecraft-server md5sums = fef6fadd0739ae03ff71ba61025be207 md5sums = cab358c32dd0d4d2463e60ee2996f658 md5sums = 54438e0c47cc5083e0a4376688b46092 - md5sums = aa1603e6c4090bfcf3177cb59b15bae8 + md5sums = 4f11b1efd6941ea894ca0497824201cf pkgname = minecraft-server diff --git a/PKGBUILD b/PKGBUILD index 64b4402..f159169 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,7 +4,7 @@ pkgname=minecraft-server pkgver=1.9 -pkgrel=1 +pkgrel=2 pkgdesc="Minecraft server unit files, script, and jar" arch=('any') url="http://minecraft.net/" @@ -28,7 +28,7 @@ md5sums=('ff68834eee875bcf367422c67673207c' 'fef6fadd0739ae03ff71ba61025be207' 'cab358c32dd0d4d2463e60ee2996f658' '54438e0c47cc5083e0a4376688b46092' - 'aa1603e6c4090bfcf3177cb59b15bae8') + '4f11b1efd6941ea894ca0497824201cf') _game="minecraft" _server_root="/srv/minecraft" diff --git a/minecraftd.sh b/minecraftd.sh index e594bca..2366926 100755 --- a/minecraftd.sh +++ b/minecraftd.sh @@ -131,12 +131,13 @@ server_start() { fi else # Though IDLE_SERVER is not set to true it could still be running and just have not noticed that the - # server was started, e.g. by manually triggering server_start again. Therefore reset the idle daemon. + # server was started, e.g. by manually triggering server_start again. Reset the idle daemon in this case. ${SUDO_CMD} screen -S "${IDLE_SESSION_NAME}" -Q select . > /dev/null if [[ $? -eq 0 ]]; then ${SUDO_CMD} screen -S "${IDLE_SESSION_NAME}" -X quit + sleep 0.1 + ${SUDO_CMD} screen -dmS "${IDLE_SESSION_NAME}" /bin/bash -c "${myname} idle_server_daemon" fi - ${SUDO_CMD} screen -dmS "${IDLE_SESSION_NAME}" /bin/bash -c "${myname} idle_server_daemon" fi }