Raised This Month: $32 Target: $400
 8% 

[Request] Server Restart Mod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Scipizoa
Senior Member
Join Date: Aug 2012
Location: ask me
Old 08-22-2012 , 20:39   [Request] Server Restart Mod
Reply With Quote #1

Ok well, I run both a L4D2 and TF2 server on my linux vps, I Want to have it where lets say I set a specific time for the servers to be shut down then restarted on a daily basis, but I'd like to mod to also check to see if theres ppl on the server in the first place, if so, wait til they disconnect.

so heres an example:

I set the time to 4AM, the mod checks to see if people are on the server when 4AM rolls arouind, if ppl are on the server, it waits till they all d/c to restart the server, otherwise if no ppl are on, it restarts it at 4am

I don't know if this is possible but a daily restart ensures the game server stay fresh and the ram never builds up. ;0
__________________

ZaBaGaBe Gaming Community: http://steamcommunity.com/groups/ZBGB
Scipizoa is offline
Nomarky
SourceMod Donor
Join Date: Sep 2007
Old 08-23-2012 , 06:50   Re: [Request] Server Restart Mod
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?p=777168 should do what you want
Nomarky is offline
Scipizoa
Senior Member
Join Date: Aug 2012
Location: ask me
Old 08-23-2012 , 07:28   Re: [Request] Server Restart Mod
Reply With Quote #3

Tnaks for the reply, but as mentioned above the l4d2 server WON'T restart automatically, so will this mod be able to restart it? I'm not skilled in linux so i'm not sure how to make the l4d2 server start up by itself like the tf2 server does after a restart
__________________

ZaBaGaBe Gaming Community: http://steamcommunity.com/groups/ZBGB
Scipizoa is offline
Nomarky
SourceMod Donor
Join Date: Sep 2007
Old 08-23-2012 , 13:04   Re: [Request] Server Restart Mod
Reply With Quote #4

Quote:
Originally Posted by Scipizoa View Post
Tnaks for the reply, but as mentioned above the l4d2 server WON'T restart automatically, so will this mod be able to restart it? I'm not skilled in linux so i'm not sure how to make the l4d2 server start up by itself like the tf2 server does after a restart
You didn't mention that.

Why not just set up your L4D server to restart on exit like your TF2 server does? I'm using Windows but all my servers restart after a crash or quit, regardless of game type.

Read the thread I linked before, restarting under Linux is discussed there.
Nomarky is offline
Scipizoa
Senior Member
Join Date: Aug 2012
Location: ask me
Old 08-23-2012 , 13:27   Re: [Request] Server Restart Mod
Reply With Quote #5

no clue how the tf2 server is setup, i didn't do it, it came that way out of the box, so to speak i've been trying to find how the hell it got to be that was so maybe i could duplicate it on the l4d2 server, but no luck
__________________

ZaBaGaBe Gaming Community: http://steamcommunity.com/groups/ZBGB
Scipizoa is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-23-2012 , 13:36   Re: [Request] Server Restart Mod
Reply With Quote #6

Quote:
Originally Posted by Scipizoa View Post
no clue how the tf2 server is setup, i didn't do it, it came that way out of the box, so to speak i've been trying to find how the hell it got to be that was so maybe i could duplicate it on the l4d2 server, but no luck
For both TF2 and L4D2, srcds_run is supposed to restart the server if it exits.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Scipizoa
Senior Member
Join Date: Aug 2012
Location: ask me
Old 08-23-2012 , 14:19   Re: [Request] Server Restart Mod
Reply With Quote #7

well i don't think srcds run is doing it for l4d2 i'll rcon a quit and see if it starts up in 10 mins and edit the post as needed

EDIT

oK... RCON quit worked, the server came right back on... but..how hell does rcon _restart not perform the same fuction.. it makes no sense.. I guess I can use that restart mod after all thanks guys oh yea is there a more up to date version of the mod lurking around the forums maybe?
__________________

ZaBaGaBe Gaming Community: http://steamcommunity.com/groups/ZBGB

Last edited by Scipizoa; 08-23-2012 at 14:23.
Scipizoa 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 00:12.


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