AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Server Autorestart (https://forums.alliedmods.net/showthread.php?t=87291)

MikeJS 03-09-2009 12:55

Server Autorestart
 
1 Attachment(s)
Restarts a server once a day after a given time when it empties.

Cvars:
sm_autorestart - Enable the plugin
sm_autorestart_time - Time to restart server at. Default is 0500 (5am)

FlyingMongoose 03-10-2009 05:19

Re: Server Autorestart
 
To point out, this does not actually restart the server unless you fall under one of a number of conditions.

On *nix your server is set to a daemon that keeps the task running and if it finds it closed launches it again
On Windows, your server is launched via a batch file that keeps the task running and if it finds it closed launches it again
On Windows, your server is launched via a server checking utility which keeps it running and if it finds it closed launches it again.
If you are on a server provider, any one of these could be the case and this plugin should work fine for you, however, if you do not, and do not have one of the above listed possibilities all this will do is periodically close your server.

sfPlayer 03-10-2009 07:20

Re: Server Autorestart
 
_restart is better and safer than quit since it works with the srcds_run start script but still does a complete restart

bug 03-10-2009 10:13

Re: Server Autorestart
 
If the server is not empty, will it then restart later?

MikeJS 03-10-2009 16:42

Re: Server Autorestart
 
bug: yes

1.1 now uses _restart instead of quit.

FlyingMongoose 03-10-2009 18:56

Re: Server Autorestart
 
what sfPlayer pointed out only applies to *nix server, windows still needs a batch file, system service, or third party software to auto-reboot.

DJ Tsunami 03-14-2009 06:48

Re: Server Autorestart
 
Can't you simply use the cron plugin for this?

MikeJS 03-14-2009 06:58

Re: Server Autorestart
 
Does that check if your server is empty?

tigerox 03-14-2009 11:01

Re: Server Autorestart
 
yes. That is why I'm using it over cron.

It will restart as soon as your server is empty, after the scheduled restart time.

Darkimmortal 03-14-2009 11:38

Re: Server Autorestart
 
Thanks, I was just about to write a plugin like this myself :P


All times are GMT -4. The time now is 08:50.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.