Register for your free account! | Forgot your password?

Go Back   elitepvpers > Off-Topics > Technical Support > Unix/Linux
You last visited: Today at 01:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[linux] CS 1.6 HLDS don't restart after crash

Discussion on [linux] CS 1.6 HLDS don't restart after crash within the Unix/Linux forum part of the Technical Support category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2012
Posts: 32
Received Thanks: 5
[linux] CS 1.6 HLDS don't restart after crash

Hey,
I just installed an CS 1.6 dedicated server on my little neat vserver but every time I go sleep and come back, the vserver is online but the CS Server isn't. Here is my startscript that works at vserver reboot:

/etc/init.d/csserver
Code:
#! /bin/bash

### BEGIN INIT INFO
# Provides:          csserver
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Starter for HLDS
# Description:       Starter for Counter Strike 1.6 Server
### END INIT INFO

su - csserver -c "ls /var/run/screen/S-csserver/*.csscreen >/dev/null 2>&1 || cd /home/csserver/cstrike ; screen -d -m -S csscreen ./hlds_run -game cstrike -console -autoupdate +port 27015 +map kz_6fd_volcano +maxplayers 32"
As you can see, I try an "screen-checker" because I put this in crontab -e:
Code:
*/10 * * * * root /etc/init.d/csserver >/dev/bull 2>&1
Now I thought it should restart at vserver reboot (it does) and if the dedicated server crashes because of the cronjob.
Or is there still an screen if the dedicated server crashes so the cronjob can't help?

Edit:
I forgott to mention: debian-7.0-i386-minimal
Tivar is offline  
Old 01/26/2014, 17:22   #2
 
XxharCs's Avatar
 
elite*gold: 34
Join Date: Apr 2011
Posts: 1,475
Received Thanks: 1,227
What is the crash log?

Edit: normaly the command parameter -autoupdate should do the work o.O
XxharCs is offline  
Old 01/26/2014, 17:29   #3
 
elite*gold: 0
Join Date: Apr 2012
Posts: 32
Received Thanks: 5
I can't find any logs expect debug.log with:
CRASH: Sun Jan 26 06:57:13 CET 2014
Start Line: ./hlds_linux -game cstrike -console -autoupdate +port 27015 +map kz_6fd_volcano +maxplayers 32

Do I have to activate something to get more usefull logs? :/


Edit:
Solved with an huge list of cronjobs thats close the screen and starts a new one every 3 hours
Tivar is offline  
Reply


Similar Threads Similar Threads
HLDS Publicing problem
08/22/2013 - Counter-Strike - 4 Replies
Hello everybody. I used to have a cs 1.6 i could publish in game tracker but i dont remember what i actually did and had it work since i had a LOT of difficulties. I have portforwarded my router, i shut down the firewall, set sv_lan 0 had some settings in IPv4 properties to create something like a static IP but gametracker would not accept it. What i am doing wrong? (I use the ip from whatismyip.com) (*Note (1) : I use HLDS from the game and not an external one because HLDSUpdatetool does...
d2nt bluebird - restart restart restart
06/15/2010 - Diablo 2 - 7 Replies
yo, ich hab schon länger 4 bots am laufen, hat auch immer alles relativ gut geklappt, auf 50 runs meist so 3-4 restarts, also ganz in ordnung, und wie ichs so mitbekommen hab waren die meist eh schon gegen ende des games (ja gut, kein baal kill,aber was solls) seit 2 tagen allerdings funktioniert da überhaupt nix mehr einer läuft "ziemlich" normal, 8 runs 2 restarts der nächste 9 runs 7 restarts dann 19 runs 19 restarts und 47 runs 47 restarts dann is natürlich realm down bei allen,...



All times are GMT +2. The time now is 01:56.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.