Server Restart

ArchivesFeature requests → Server Restart

SOLVED

It would be useful if you were to create some script that restarts the server when it dies.

Do you mean if the server were to crash it auto restarts? It already has the ability to do that, a script wouldn’t help, especially as it would have to be a plugin, and those don’t work when the server is down. Also this doesn’t follow the guidelines so next time your request would be locked and ignored.


All in all, this wouldn’t help and U can get imagine any way it would help. It would practically waste time on developers IMO.

All in all, this wouldn’t help and U can get imagine any way it would help. It would practically waste time on developers IMO.

So having an auto restart to prevent server crashes when no staff are online isnt helpful at all?

So having an auto restart to prevent server crashes when no staff are online isnt helpful at all?

The server already has this, it just doesn’t work too well.

@Nightshade32

Well then how about someone makes a script, or program rather that does the job well? Make a program that can turn on the server when is goes down, kind of like wake on LAN, and then give all the staff permission to operate it. Then make a second program to alert the Staff when it is down.

The only thing I can think of here is pinging the server and testing if there’s a response. If I wanted to I could acctually probably make a script to make a forum post if I don’t get a response with a python script via httplib. That’s just a spammy bad idea as an example though. Surely there’s something better that can become of it
OFC it would work best on a different computer/network altogether because pan has problems like storms and electricity outages on the occasion.

So go to the website like this: ‘<?php

include_once 'MinecraftServerStatus/status.class.php';
$status = new MinecraftServerStatus();
$response = $status->getStatus('redstoner.com');
if(!$response) {
	echo"The Server is offline!";
} else {
	echo"<img width=\"64\" height=\"64\" src=\"".$response['favicon']."\" /> <br>
	The Server ".$response['hostname']." is running on ".$response['version']." and is online,
	currently are ".$response['players']." players online
	of a maximum of ".$response['maxplayers'].". The motd of the server is '".$response['motd']."'. 
	The server has a ping of ".$response['ping']." milliseconds.";
}

?> '

A) codeblock much? Huh? B) why did you use PHP for that example? The website is coded in ruby on rails so it would make more sense (just kidding, please dont hurt me) C) what does that do? Sorry, not a PHP speaker.


@redstone_sheep any opinions on the discussion?


Edit: I just read the website update. Ignore the first point.