summarylogtreecommitdiffstats
path: root/minecraftd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'minecraftd.sh')
-rwxr-xr-xminecraftd.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/minecraftd.sh b/minecraftd.sh
index ef7dafee02fe..50834727ac01 100755
--- a/minecraftd.sh
+++ b/minecraftd.sh
@@ -130,8 +130,10 @@ server_command() {
sudo -u ${MC_USER} screen -S ${SESSION_NAME} -Q select . > /dev/null
if [ $? -eq 0 ]; then
+ sleep 0.1s &
+ SLEEP_PID=$!
mc_command "$@" &
- tailf --pid=$! -n 0 ${LOGPATH}/latest.log &
+ tail -f --pid=${SLEEP_PID} -n 0 ${LOGPATH}/latest.log
else
echo "There is no ${SESSION_NAME} session to connect to."
fi