diff options
author | Gordian Edenhofer | 2016-03-02 21:47:37 +0100 |
---|---|---|
committer | Gordian Edenhofer | 2016-03-02 21:51:54 +0100 |
commit | 89684ebd701dd611698c33e4b286ce06207b90f7 (patch) | |
tree | fb85f5835bc84d5f6a0abe363bc0a59aae150b4f /minecraftd.sh | |
parent | e331e1e8c25c5fce0a01da2ba8ef9273484ac8f8 (diff) | |
download | aur-89684ebd701dd611698c33e4b286ce06207b90f7.tar.gz |
Upgpkg: 1.9-2
Fix serious problem which let to the idle_server_daemon being started
independently from whether the user actually wanting it.
Diffstat (limited to 'minecraftd.sh')
-rwxr-xr-x | minecraftd.sh | 5 |
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 } |