Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Has to be run from within server files
- #(because of how the server itself works)
- if pgrep -x "world_backup.sh" > /dev/null
- then
- echo "Backup script already running"
- else
- echo "Starting backup script"
- world_backup.sh &
- fi
- while true
- do
- echo Starting server...
- java -Xms1G -Xmx2G -jar paperclip-504.jar
- echo Restarting in 5 seconds...
- sleep 5
- done
Add Comment
Please, Sign In to add comment