I've got FTB running on a Virtual Machine on my home computer and I got some friends on and we were trying like hell to crash the thing. We tried a 10x10x10 room of dynamite and while it made a very pretty hole, it only raised the load temporarily. Next was a massive row of nuclear reactors with no coolant. Same result, only with a bigger hole.
Then we started just dropping world anchors everywhere and blasting the bajeezus out of the countryside with mining lasers set to explosive while flying around to force new chunk generation.
Still no crash.
So, the reason I'm trying to make my server crash is that I want to test out a script I have that will re-start the server if it crashes by checking to see if its process exists:
This is what I use to launch the server. If it finds the server already running, it does nothing, but if it doesn't see the process, it will start up the server again. If I close the server or kill the process, then the script will restart it after the next check (60 seconds between).
Problem is, I'm not sure if the .jar fill actually *closes* when the server crashes. Does it? Or does the process stay open to display errors, etc? It didn't occur to me until after all that destruction to simply ask some people who might have had the server crash on them already.
Thanks.
Then we started just dropping world anchors everywhere and blasting the bajeezus out of the countryside with mining lasers set to explosive while flying around to force new chunk generation.
Still no crash.
So, the reason I'm trying to make my server crash is that I want to test out a script I have that will re-start the server if it crashes by checking to see if its process exists:
Code:
#! /bin/bash
while [[ 1 ]]
do
if [[ "$(ps faux | grep FTB-Beta-A.jar|grep -v grep)" == "" ]]
then echo -e "$(date) -- Server NOT running... Attempting to start."
java -Xms512M -Xmx4G -jar FTB-Beta-A.jar &
else echo "$(date) -- Server detected as running."
fi
sleep 60
done
This is what I use to launch the server. If it finds the server already running, it does nothing, but if it doesn't see the process, it will start up the server again. If I close the server or kill the process, then the script will restart it after the next check (60 seconds between).
Problem is, I'm not sure if the .jar fill actually *closes* when the server crashes. Does it? Or does the process stay open to display errors, etc? It didn't occur to me until after all that destruction to simply ask some people who might have had the server crash on them already.
Thanks.