mirror of
https://github.com/MinecraftServerControl/mscs.git
synced 2024-11-15 14:58:18 -07:00
msctl: use a lock file for Overviewer
This commit is contained in:
parent
64f796149b
commit
0cd051a3dd
10
msctl
10
msctl
@ -2480,7 +2480,15 @@ case "$1" in
|
||||
printf "Running Minecraft Overviewer mapping:"
|
||||
for WORLD in $WORLDS; do
|
||||
printf " $WORLD"
|
||||
overviewer "$WORLD"
|
||||
# Create a lock file so that we don't create duplicate processes.
|
||||
if $(createLockFile $WORLD "overviewer"); then
|
||||
overviewer "$WORLD"
|
||||
# Remove the lock file.
|
||||
removeLockFile $WORLD "overviewer"
|
||||
else
|
||||
printf "\nError lock file for world $WORLD could not be created."
|
||||
printf " Is the world already running Overviewer?\n"
|
||||
fi
|
||||
done
|
||||
printf ".\n"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user