Guest User

Untitled

a guest
Jan 22nd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #Has to be run from within server files
  4. #(because of how the server itself works)
  5.  
  6. if pgrep -x "world_backup.sh" > /dev/null
  7. then
  8. echo "Backup script already running"
  9. else
  10. echo "Starting backup script"
  11. world_backup.sh &
  12. fi
  13.  
  14. while true
  15. do
  16. echo Starting server...
  17. java -Xms1G -Xmx2G -jar paperclip-504.jar
  18. echo Restarting in 5 seconds...
  19. sleep 5
  20. done
Add Comment
Please, Sign In to add comment