Browse Source

hopefully mcbe maint script should stop restarting when there are players present now

feature/startup-from-labels
Mar Alegre 5 years ago
parent
commit
b835b2f33b
  1. 2
      src/mcbe/assets/bin/maint

2
src/mcbe/assets/bin/maint

@ -24,7 +24,7 @@ if [[ $hour -eq 1 ]]; then
# if no players are present, restart the server
# should help deal with any memory leaks
players=$(mcbe-exec list | head -n 1 | cut -d ' ' -f 3 | cut -d '/' -f 1)
if [[ $players -eq 0 ]]; then
if [[ $players == "0" ]]; then
mcbe-restart
fi
# save daily and longterm backups

Loading…
Cancel
Save