Crash Detection? Best Method.

Discussion in 'Bukkit Help' started by Jono20201, May 26, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Jono20201

    Hi there,

    I'm working on building a Minecraft control panel for our clients over at MPServ, and we're going to be implementing a way for people to have automated restarts, however I understand that if a server crashes our customers want their server to be put back online faster. So, because of this I'm looking for a way for us to detect if the server has crashed, and if it has we can then try a graceful stop and if that fails we will move onto a process kill/force stop.

    My question is what is the best way to detect if the server has crashed, the issue with just pinging it is that it returns as online even if its crashed - so thats out of the window. The only other way I can think of doing it is scanning their recent log file every 15 minutes for 'known' crash issues - and then restarting it.

    Any better idea's?

    Regards,
    Jonathan
     
  2. Offline

    zipfe

    You refer to yourself in the plural, as in a team, you speak of customers of yours, as if you are a hosting company for Minecraft servers, yet you have no clue how to determine whether that little java thingy is still actually running properly?
     
    Nathan C likes this.
  3. Offline

    Jono20201

    Hey,

    I can see if its running, and I can check if its online - but sometimes craftbukkit/minecraft seems to be running OK, but without trying to connect to it via a real client there isn't a way to tell fir sure. Unless I'm missing something obvious?

    Regards,
    Jonathan
     
Thread Status:
Not open for further replies.

Share This Page