Raised This Month: $51 Target: $400
 12% 

server restart via console


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
veli
Senior Member
Join Date: Apr 2012
Location: Netherlands
Old 10-29-2014 , 15:53   server restart via console
Reply With Quote #1

Hello All,

Is it possible to restarting CSGO server via the game console? I have root access.

Game = CSGO
Sourcemod and metamod are installed.


Thanks in advance,
veli is offline
Amroth
Senior Member
Join Date: Apr 2013
Location: /root
Old 10-29-2014 , 17:18   Re: server restart via console
Reply With Quote #2

You can crash the server (send _crash command to server console) and it'll re-start itself in 10 second.
If server re-start with different port, then try add -net_port_try 1 to server start line.

Why don't you just restart server from ssh if you have root access?
Amroth is offline
veli
Senior Member
Join Date: Apr 2012
Location: Netherlands
Old 10-29-2014 , 17:43   Re: server restart via console
Reply With Quote #3

Quote:
Originally Posted by Amroth View Post
You can crash the server (send _crash command to server console) and it'll re-start itself in 10 second.
If server re-start with different port, then try add -net_port_try 1 to server start line.

Why don't you just restart server from ssh if you have root access?
Hello Amroth, sry my mistake. the question is via game console not the server console. I want do that when i am in game. So i want open game console with ~ and than restart the server. Is this possible? if yes, how to do?

Thanks in advance,
veli is offline
splewis
Veteran Member
Join Date: Feb 2014
Location: United States
Old 10-29-2014 , 19:46   Re: server restart via console
Reply With Quote #4

Quote:
Originally Posted by veli View Post
Hello Amroth, sry my mistake. the question is via game console not the server console. I want do that when i am in game. So i want open game console with ~ and than restart the server. Is this possible? if yes, how to do?

Thanks in advance,
Are you familiar with rcon (remote console)?

All that does is send the command to the server. e.g. "rcon _crash"
__________________
splewis is offline
Konstantin
Senior Member
Join Date: Nov 2012
Old 10-29-2014 , 22:37   Re: server restart via console
Reply With Quote #5

Quote:
Originally Posted by splewis View Post
Are you familiar with rcon (remote console)?

All that does is send the command to the server. e.g. "rcon _crash"
It does nothing for me.
Just type sm_rcon quit in your game console and the server will reboot.
__________________
OS: Linux
Gameserver: CS:GO Mini Games
Konstantin is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 10-30-2014 , 02:04   Re: server restart via console
Reply With Quote #6

I get fancy and use ent_create weapon_usp.

This only works with cheats enabled or a cheats override plugin.

However, Konstantin is 100% correct.
__________________
Neuro Toxin is offline
veli
Senior Member
Join Date: Apr 2012
Location: Netherlands
Old 10-30-2014 , 04:42   Re: server restart via console
Reply With Quote #7

Quote:
Originally Posted by Konstantin View Post
It does nothing for me.
Just type sm_rcon quit in your game console and the server will reboot.
Hello Konstantin,

Thanks. I see it works. Also command sm_rcon _restart too.

Last edited by veli; 10-30-2014 at 04:47.
veli is offline
BlagoYar
Member
Join Date: Nov 2018
Location: Чер
Old 01-06-2019 , 18:20   Re: server restart via console
Reply With Quote #8

Quote:
Originally Posted by veli View Post
Hello Konstantin,

Thanks. I see it works. Also command sm_rcon _restart too.
Thank you very much!
BlagoYar 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 12:13.


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