Idea to auto-"fix" server problems

the_actual_God

New Member
- Have a second (quite lame) computer continuedly (as in: every 5 mins or so) monitor this webadress which currently says:

Minecraft Crafter's Community
IP: 67.189.36.246:25565
0/20 players connected!
(Hint: Even though the server is currently down, I have seen "2/20" from time to time. Might be the people currently trying to log in.)

- When the player number has been below 4 for 10 minutes, make the server's hardware reboot. A more elegant way would be to have a software that uses a dummy slot and realizes when it has been disconnected and can't reconnect even though it has its reserved slot.

- Deactivate this mechanism while the server is intentionally down.

- Sleep well.
 

Socrates271

Turtle Lover
the_actual_God said:
- Have a second (quite lame) computer continuedly (as in: every 5 mins or so) monitor this webadress which currently says:

Minecraft Crafter's Community
IP: 67.189.36.246:25565
0/20 players connected!
(Hint: Even though the server is currently down, I have seen "2/20" from time to time. Might be the people currently trying to log in.)

- When the player number has been below 4 for 10 minutes, make the server's hardware reboot. A more elegant way would be to have a software that uses a dummy slot and realizes when it has been disconnected and can't reconnect even though it has its reserved slot.

- Deactivate this mechanism while the server is intentionally down.

- Sleep well.
If the error msg was output to the mcadmin cmd chat window, then within the main program.cs of mcadmin one could create a function called by a 'keep_alive' toggle button in the gui that restarts or re-opens mcadmin once this unexpected java exception occurs.
 
Top