Raised This Month: $ Target: $400
 0% 

Force Server Restart


Post New Thread Reply   
 
Thread Tools Display Modes
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 09-09-2009 , 00:38   Re: Force Server Restart
Reply With Quote #11

You should make it write a text file with a timestamp on it to check against every so long.
__________________
Bad_Bud is offline
Kitami
Senior Member
Join Date: Jun 2006
Location: Toronto
Old 09-09-2009 , 10:42   Re: Force Server Restart
Reply With Quote #12

Yeah if its restarting and restarting over and over it wont have the chance to let 4 players connect right? Also I check my server uptime and its not restarting the server.

I have filedeamon running my server so when it gets a rcon exit it just reboots the HLserver like most GS providers.
__________________
You know what I'd like to be? I mean if I had my goddamn choice, I'd just be the catcher in the rye and all.
Kitami is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-09-2009 , 11:11   Re: Force Server Restart
Reply With Quote #13

It will wait 2 minutes before even checking for a restart. I think 2 minutes is enough for 4 players to connect.
Also, it doesn't physically restart. It uses the restart command, which reloads the current map.
You can change the command to "exit" for a physical restart.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Kitami
Senior Member
Join Date: Jun 2006
Location: Toronto
Old 09-10-2009 , 00:48   Re: Force Server Restart
Reply With Quote #14

What I mean is I want this plug in to just restart the server once a night when there is less then 4 people in it, instead of me waiting for the server to die down. I guess I could just set the 120 to like 6 hours of wait maybe idk.


Once again THANK YOU SO MUCH!!!
__________________
You know what I'd like to be? I mean if I had my goddamn choice, I'd just be the catcher in the rye and all.
Kitami is offline
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 09-10-2009 , 02:31   Re: Force Server Restart
Reply With Quote #15

Quote:
Originally Posted by Kitami View Post
What I mean is I want this plug in to just restart the server once a night when there is less then 4 people in it, instead of me waiting for the server to die down. I guess I could just set the 120 to like 6 hours of wait maybe idk.


Once again THANK YOU SO MUCH!!!
That wouldn't work because each time the map changes the counter is going to restart. You'd have to save it to an external source where you can pull out the timestamp when the plugin restarts on a map change.

Honestly you could probably just rig up a simple text file that only contains the get_systime of the last restart.
__________________
Bad_Bud is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-10-2009 , 11:30   Re: Force Server Restart
Reply With Quote #16

Try mine now.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 09-10-2009 , 17:36   Re: Force Server Restart
Reply With Quote #17

Cool. I knew I wouldn't have the time to make and test it.
__________________
Bad_Bud is offline
Kitami
Senior Member
Join Date: Jun 2006
Location: Toronto
Old 09-16-2009 , 13:18   Re: Force Server Restart
Reply With Quote #18

Yeah its working great one problem which happened this morning is it restarted the server @ 110am and its only suppose to do it between 4am-10am.
__________________
You know what I'd like to be? I mean if I had my goddamn choice, I'd just be the catcher in the rye and all.
Kitami is offline
Reply



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 08:04.


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