summarylogtreecommitdiffstats
path: root/minecraftd.sh
diff options
context:
space:
mode:
authorGordian Edenhofer2015-12-14 21:32:27 +0100
committerGordian Edenhofer2015-12-14 21:59:11 +0100
commitccd743fc8a8d0f857bbc9bedf4f05b35522f9093 (patch)
treeba2de6854e83b9156e7e05b44d74b2ecf2b22ba3 /minecraftd.sh
parent2d367a746a4a3119f039d4e299299defcd7dca77 (diff)
downloadaur-ccd743fc8a8d0f857bbc9bedf4f05b35522f9093.tar.gz
Tailf is deprecated, use tail -f instead + Bugfix in tail invocation
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