Raised This Month: $344 Target: $400
 86%   Almost there!

Restart Server Console


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fragkiller
Member
Join Date: Jun 2012
Old 07-02-2022 , 11:39   Restart Server Console
Reply With Quote #1

Hey,

So, atleast on Linux, it was possible to restart a CS:S or CS:GO server by typing _restart in console, without shutting it down completly. Useful to have a plugin manage the server restarts, e.g. by waiting for the map session to end instead at an exact time.

So recently, I've updated my CS:S & CS:GO servers to the most recent SM Stable versions, 1.10.6045, and the behaviour for CS:S changed. Now, when trying to type _restart in CS:S, the server shuts down successfully, but doesn't restart anymore. The same effect goes for quit. But for CS:GO its unchanged and working as expected.

Is there any other workaround, and what did SM change, that the behaviour changed in CS:S?
Fragkiller is offline
hamilton5
Veteran Member
Join Date: Oct 2012
Location: USA
Old 07-03-2022 , 01:03   Re: Restart Server Console
Reply With Quote #2

not familiar with css anymore, but csgo uses a 'wrapper' script. You could do the same for css, or maybe that's what's missing or changed? It's just a simple loop with css in the middle. If you restart, or it crashes it loops and runs css again. you would need to quit your script so it does not restart and stay shut down when needed.
hamilton5 is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 07-03-2022 , 01:55   Re: Restart Server Console
Reply With Quote #3

you have to add "-autoupdate" to the commandline. if i remove -autoupdate and do _restart, server just shutting down.

Example:

-autoupdate -steam_dir "/home/steamcmd" -steamcmd_script "/home/steamcmd/update_css.txt"

update_css.txt

@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
force_install_dir /home/gameserver/css
login anonymous
app_update 232330
quit

Last edited by asdfxD; 07-03-2022 at 02:42.
asdfxD is offline
oqyh
Senior Member
Join Date: May 2019
Location: United Arab Emirates
Old 07-03-2022 , 06:39   Re: Restart Server Console
Reply With Quote #4

Quote:
Originally Posted by Fragkiller View Post
Hey,

So, atleast on Linux, it was possible to restart a CS:S or CS:GO server by typing _restart in console, without shutting it down completly. Useful to have a plugin manage the server restarts, e.g. by waiting for the map session to end instead at an exact time.

So recently, I've updated my CS:S & CS:GO servers to the most recent SM Stable versions, 1.10.6045, and the behaviour for CS:S changed. Now, when trying to type _restart in CS:S, the server shuts down successfully, but doesn't restart anymore. The same effect goes for quit. But for CS:GO its unchanged and working as expected.

Is there any other workaround, and what did SM change, that the behaviour changed in CS:S?

This for csgo
https://forums.alliedmods.net/showthread.php?t=336242
__________________
.:[ >> My Plugins << ]:.

My discord : Gold KingZ#1337

Last edited by oqyh; 07-03-2022 at 06:41.
oqyh 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 02:11.


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