Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #43 from TnTBass/master
Browse files Browse the repository at this point in the history
Added grep in MCPID to check for java
  • Loading branch information
user77 committed Apr 4, 2012
2 parents 6a0d3d5 + e8e2c64 commit 6840fc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/scripts/functions.sh
Expand Up @@ -356,7 +356,7 @@ fi

# Find PID of Bukkit Server.
checkServer () {
MCPID=`ps -ef |grep -i craftbukkit* |grep -v grep |awk '{ print $2 }'`
MCPID=`ps -ef |grep -i craftbukkit* |grep -v grep |grep java |awk '{ print $2 }'`
}

# Update Bukkit to Latest.
Expand Down Expand Up @@ -505,6 +505,7 @@ stopServer () {
screen -S bukkit-server -X quit
rm -f /tmp/plugins-$abmid*
rm -f /tmp/build-$abmid*
rm -f /tmp/done-$abmid*
fi
fi
}
Expand Down Expand Up @@ -586,6 +587,7 @@ getPlugins () {
getDone () {
if [[ ! -f $donetmp ]]; then
donetmp=`mktemp "/tmp/done-$abmid.XXXXXX"`
sleep 1
grep "Done ([0-9]\{1,\}\.[0-9]\{1,\}s)\!" $slog | awk '{print $5}' > $donetmp
fi
doneTime=`cat $donetmp`
Expand Down

0 comments on commit 6840fc1

Please sign in to comment.