summarylogtreecommitdiffstats
path: root/minecraftd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'minecraftd.sh')
-rwxr-xr-xminecraftd.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/minecraftd.sh b/minecraftd.sh
index e594bca23274..23669263c363 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
}