xStorm 2 Report post Posted March 8, 2016 Hello! I'm fairly new to server hosting, and I am currently renting a server from HostHavoc. I'm trying to set up automatic restarts via infistar, but I'm encountering a few issues while trying to do so: 1: How does the infistar restart code work together with the restart code in the RCON class in the exile_server_config.pbo? Does the infistar overlap the server config settings? 2: I'm getting server restart messages on the times I want via Infistar, but the restart itself is delayed (last time I tested, about 10 minutes ago, it was delayed with about 9 minutes). Any idea on why it might be so? This is my infistar code: Spoiler /* shows RESTART IN X MINS */ USE_RESTART_TIMER = true; /* show time left to next restart */ RESTART_TIME_IN_M = 20; /* restart time in minutes (default: 180min == 3 hours) */ SHOW_TIMER_IN_MIN[] = {5,10,15,19}; /* minutes before restart, when message is shown */ USE_RESTART_TIMER_SHUTDOWN = true; /* #shutdown the server after RESTART_TIME_IN_M minutes */ And this is my server config code: Spoiler class RCON { /* Note that for this to work you need to have serverCommandPassowrd defined in config.cfg and BE enabled */ // This needs to match config.cfg serverCommandPassword serverPassword = "xxx"; // Autolocks server until its ready to accept players useAutoLock = 0; // Server will autoLock at that time before restart (minutes) restartAutoLock = 10; /* Number of hours and minutes of your restart period. Examples: {4, 0} = Every 4 hours {1, 30} = Every one and a half hour (who the hell would do this?) */ restartTimer[] = {0, 20}; /* Kicks players before restart to prevent gear loss. We strongely recommend to use this! 0 = off 1 = on */ useAutoKick = 1; /* Number of minutes before the server kicks players that did not disconnect before the restart. Should at least be two minutes! */ kickTime = 3; /* Self-explanatory 0 = off 1 = on */ useRestartMessages = 1; /* Number of minutes before the restart to inform your players. Only use full minutes here. Value like 5.5 have not been tested. */ restartWarningTime[] = {19, 15, 10, 5}; /* If set to 1 server will execute '#shutdown', to try to shutdown the server */ useShutdown = 1; }; Any help is much appreciated! 1 Share this post Link to post Share on other sites
MetalHead 116 Report post Posted March 8, 2016 (edited) infiSTAR and the server config code only send messages to warn of a restart, they won't actually restart your server. To restart your server at given intervals you need to use BEC which is usually provided by all the popular game server hosts. Also, you should use only one of them to send the warning. Edited March 8, 2016 by MetalHead 1 Share this post Link to post Share on other sites
xStorm 2 Report post Posted March 8, 2016 Thanks for the reply! Ok. Then I have a follow up question: What does this part of the restart code actually do? server config: Spoiler /* If set to 1 server will execute '#shutdown', to try to shutdown the server */ useShutdown = 1; infistar: Spoiler USE_RESTART_TIMER_SHUTDOWN = true; /* #shutdown the server after RESTART_TIME_IN_M minutes */ And if I could I would love to only use infistar, but as far as I can see I can't configure stuff like autolock in infistar, because the timers of infistar and the timers on the server config file doesn't seem to be synced up. I have the status bar addon installed and working, and the infistar warning time and the status bar time is perfectly in sync, but still the server actually restarts much after. Share this post Link to post Share on other sites
MetalHead 116 Report post Posted March 9, 2016 Set useRestartMessages = 1; to 0 (zero) in your exile_server_config.pbo Set useShutdown = 1; to 0 (zero) in your exile_server_config as this will literally shutdown your server. ( It will not restart using this ) Set USE_RESTART_TIMER = true; in your infiSTAR EXILE_AHAT_CONFIG.hpp RESTART_TIME_IN_M = 240; = Your server will restart in 4 hours. 4 x 60 = 240mins = 4 hours SHOW_TIMER_IN_MIN[] = {5,10,15,30}; = The first message on screen will be 30 minutes before it restarts etc etc Set USE_RESTART_TIMER_SHUTDOWN = false; Needs to be false or this will shutdown your server not restart it. Post a screenshot of your Admin panel please but blank out any sensitive info 2 Share this post Link to post Share on other sites
xStorm 2 Report post Posted March 9, 2016 (edited) Haven't gotten around to test that config yet, but this is my control panel. Unfortunately hosthavoc doesn't support Battleye Extended Controls yet, as I figure that was the simplest solution for scheduled restarts... But as I can't use this I'm looking for alternatives. Thank you so much again for your replies And side note: With the current setup is does actually restart, but not in sync with the infistar timings. Edited March 9, 2016 by xStorm Share this post Link to post Share on other sites
MetalHead 116 Report post Posted March 9, 2016 (edited) It's right there at the top called "Scheduled Tasks". This is where you setup the restart for the server. Click the tab called Scheduled Tasks, then click New and make it look like this screen shot and just click save when you are done. Edited March 9, 2016 by MetalHead Spelling 1 Share this post Link to post Share on other sites
xStorm 2 Report post Posted March 9, 2016 Trying it out now! Share this post Link to post Share on other sites
Hell Raiser 44 Report post Posted March 9, 2016 Hello, Just thought I would post what i do for restarts and see if it helps. I do 3 hours restarts and infistar and the server are never quiet right (as infistar starts slightly after the server timer) My infistar looks like this /* shows RESTART IN X MINS */ USE_RESTART_TIMER = true; RESTART_TIME_IN_M = 176; SHOW_TIMER_IN_MIN[] = {1,2,3,4,5,10,15,30}; USE_RESTART_TIMER_SHUTDOWN = false; And my config looks like this restartTimer[] = {2, 58}; restartWarningTime[] = {}; useShutdown = 1; This (for my server) makes infistar and the server work very well together for restart messages and i would say they are about 5 seconds apart. Hope this makes sense and helps you out. Hell Raiser. 2 Share this post Link to post Share on other sites
xStorm 2 Report post Posted March 10, 2016 Thank you! I guess that was the answer I was looking for when I started I'm gonna give the task scheduler a try over night, but if it doesn't work out I'll definetely give your example a go. It seems logical Thank you for taking your time to answer. Share this post Link to post Share on other sites
Hell Raiser 44 Report post Posted March 11, 2016 xStorm, it all work ok? What did you go with in the end? Share this post Link to post Share on other sites