Raised This Month: $ Target: $400
 0% 

Autorestart on amx_rcon quit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gloBi
Member
Join Date: Dec 2008
Old 04-21-2013 , 17:02   Autorestart on amx_rcon quit
Reply With Quote #1

Hello, everybody!

I'm running a CS 1.6 server on Linux/Debian, but I want to know how to make my server starts again/reboot after someone types the command amx_rcon quit or just rcon quit. I have tried with -autoupdate in command line, but it takes too much time (~40+ seconds) to come online. Is it normally? And is there any other trick for this ?

Thank you in advance.

Last edited by gloBi; 04-21-2013 at 17:03.
gloBi is offline
Send a message via Skype™ to gloBi
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 04-21-2013 , 17:05   Re: Autorestart on amx_rcon quit
Reply With Quote #2

You have to run server in screen. There had to be some screen flags, witch I can't remember. Something like screen -d -m -s server ./hlds_run xxx
__________________
Quote:
367. Everyone's copyright will be broken. No exceptions.
jonnzus is offline
AmineKyo
فوق سريرك
Join Date: Oct 2011
Location: Morocco
Old 04-21-2013 , 17:09   Re: Autorestart on amx_rcon quit
Reply With Quote #3

Quote:
Originally Posted by jonnzus View Post
You have to run server in screen. There had to be some screen flags, witch I can't remember. Something like screen -d -m -s server ./hlds_run xxx
screen -A -L -m -d -S Name ./hlds_run (with a .log file)

screen -r Name (to open the screen)
__________________

Last edited by AmineKyo; 04-21-2013 at 17:09.
AmineKyo is offline
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 04-21-2013 , 17:15   Re: Autorestart on amx_rcon quit
Reply With Quote #4

Ahh, thank you
__________________
Quote:
367. Everyone's copyright will be broken. No exceptions.
jonnzus is offline
gloBi
Member
Join Date: Dec 2008
Old 04-21-2013 , 18:09   Re: Autorestart on amx_rcon quit
Reply With Quote #5

Code:
screen -A -m -d -S hlds ./hlds_run -game cstrike +ip xxx.xxx.xxx.xxx -port 27015 +maxplayers 21 +map de_dust2 -noipx -nojoy -insecure -pingboost 3 -console +sv_lan 0 +rcon_password 1234
I have started my server with this options and nothing. When I type rcon quit, server quits and doesn't reboot. What is wrong?

Last edited by gloBi; 04-21-2013 at 18:10.
gloBi is offline
Send a message via Skype™ to gloBi
AmineKyo
فوق سريرك
Join Date: Oct 2011
Location: Morocco
Old 04-21-2013 , 18:13   Re: Autorestart on amx_rcon quit
Reply With Quote #6

Quote:
Originally Posted by gloBi View Post
Code:
screen -A -m -d -S hlds ./hlds_run -game cstrike +ip xxx.xxx.xxx.xxx -port 27015 +maxplayers 21 +map de_dust2 -noipx -nojoy -insecure -pingboost 3 -console +sv_lan 0 +rcon_password 1234
I have started my server with this options and nothing. When I type rcon quit, server quits and doesn't reboot. What is wrong?
Because you quit it ?
__________________
AmineKyo is offline
gloBi
Member
Join Date: Dec 2008
Old 04-21-2013 , 18:17   Re: Autorestart on amx_rcon quit
Reply With Quote #7

And HOW to make server reboots automatically on quit?
When it crashes, it reboots automatically, but when someone quit it, it doesn't reboot.

That was my question.
gloBi is offline
Send a message via Skype™ to gloBi
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-21-2013 , 21:33   Re: Autorestart on amx_rcon quit
Reply With Quote #8

You need to use another script, search for one
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 04-22-2013 , 00:32   Re: Autorestart on amx_rcon quit
Reply With Quote #9

At first you should update your server
__________________

Mordekay is offline
gloBi
Member
Join Date: Dec 2008
Old 04-22-2013 , 15:09   Re: Autorestart on amx_rcon quit
Reply With Quote #10

I have searched on Google, but nothing found. Someone can help?
gloBi is offline
Send a message via Skype™ to gloBi
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 23:55.


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