Raised This Month: $182 Target: $400
 45% 

Server Autorestart


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MikeJS
Senior Member
Join Date: Nov 2008
Plugin ID:
805
Plugin Version:
1.3
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    477 
    Plugin Description:
    Restarts a server once a day
    Old 03-09-2009 , 12:55   Server Autorestart
    Reply With Quote #1

    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)
    Attached Files
    File Type: sp Get Plugin or Get Source (restart.sp - 2374 views - 2.3 KB)

    Last edited by MikeJS; 01-01-2014 at 09:08.
    MikeJS is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 03-10-2009 , 05:19   Re: Server Autorestart
    Reply With Quote #2

    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.
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    sfPlayer
    Senior Member
    Join Date: Dec 2007
    Location: Germany
    Old 03-10-2009 , 07:20   Re: Server Autorestart
    Reply With Quote #3

    _restart is better and safer than quit since it works with the srcds_run start script but still does a complete restart
    sfPlayer is offline
    bug
    Senior Member
    Join Date: Nov 2007
    Old 03-10-2009 , 10:13   Re: Server Autorestart
    Reply With Quote #4

    If the server is not empty, will it then restart later?
    bug is offline
    MikeJS
    Senior Member
    Join Date: Nov 2008
    Old 03-10-2009 , 16:42   Re: Server Autorestart
    Reply With Quote #5

    bug: yes

    1.1 now uses _restart instead of quit.
    __________________
    MikeJS is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 03-10-2009 , 18:56   Re: Server Autorestart
    Reply With Quote #6

    what sfPlayer pointed out only applies to *nix server, windows still needs a batch file, system service, or third party software to auto-reboot.
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    DJ Tsunami
    DJ Post Spammer
    Join Date: Feb 2008
    Old 03-14-2009 , 06:48   Re: Server Autorestart
    Reply With Quote #7

    Can't you simply use the cron plugin for this?
    __________________
    DJ Tsunami is offline
    MikeJS
    Senior Member
    Join Date: Nov 2008
    Old 03-14-2009 , 06:58   Re: Server Autorestart
    Reply With Quote #8

    Does that check if your server is empty?
    __________________
    MikeJS is offline
    tigerox
    AlliedModders Donor
    Join Date: Oct 2008
    Location: Canada
    Old 03-14-2009 , 11:01   Re: Server Autorestart
    Reply With Quote #9

    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.
    tigerox is offline
    Darkimmortal
    Senior Member
    Join Date: Aug 2008
    Location: UK
    Old 03-14-2009 , 11:38   Re: Server Autorestart
    Reply With Quote #10

    Thanks, I was just about to write a plugin like this myself
    Darkimmortal is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 18:41.


    Powered by vBulletin®
    Copyright ©2000 - 2017, vBulletin Solutions, Inc.
    Theme made by Freecode