THANKS!!!!!!!
auto start for cento linux os
-
mateckz
- Compulsive poster

- Posts: 65
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Wed Mar 10, 2010 5:20 pm
auto start for cento linux os
could someone post the exact way to auto start hlds on rcon quit, and on box restart
THANKS!!!!!!!
THANKS!!!!!!!
-
rustydusty1717
- This is my homepage

- Posts: 646
- Joined: Sun Sep 20, 2009 6:15 pm
Re: auto start for cento linux os
If it's a CS 1.6 server, start with this guide: http://www.nfoservers.com/forums/viewto ... =46&t=4163. Step 5 talks about how to make it start automatically with the OS and tells you to edit a file with this command:
On CentOS, just use this instead:
As far as making the server auto-restart after a crash, the hlds_run script that Valve includes does this automatically.
Code: Select all
nano /etc/conf.d/local.startCode: Select all
nano /etc/rc.localRe: auto start for cento linux os
cd /root/hlds
chrt -r 20 ./hlds_run -game cstrike -port 27018 +maxplayers 11 -pingboost 2
[Error writing to /etc/conf.d/local: No such file or directory]
chrt -r 20 ./hlds_run -game cstrike -port 27018 +maxplayers 11 -pingboost 2
[Error writing to /etc/conf.d/local: No such file or directory]
Re: auto start for cento linux os
ok i did the one for cent os you posted didnt see that till after i posted let me see if its going to work now

Re: auto start for cento linux os
Okay now when i restart the box doesnt log in so i cant see any of the icons, not sure if its supposed to do that, also ventrilo is not auto restarting, and hlds is only maxplayering 6 slots
cd /root/hlds
chrt -r 20 ./hlds_run -game cstrike -autoupdate -port 27015
+maxplayers 11 -pingboost 2
cd /root/ventrilo/ventsrv
./ventrilo_srv
thats what i did exactly
cd /root/hlds
chrt -r 20 ./hlds_run -game cstrike -autoupdate -port 27015
+maxplayers 11 -pingboost 2
cd /root/ventrilo/ventsrv
./ventrilo_srv
thats what i did exactly
Re: auto start for cento linux os
and also its now only maxing 333 fps
CPU In Out Uptime Users FPS Players
0.00 4.16 3.56 0 1 333.56 1
which i was getting 600-1000 before the auto start thing soemthings not right get at me asap if you can thanks so much
CPU In Out Uptime Users FPS Players
0.00 4.16 3.56 0 1 333.56 1
which i was getting 600-1000 before the auto start thing soemthings not right get at me asap if you can thanks so much
Re: auto start for cento linux os
Two things:mateckz wrote:Okay now when i restart the box doesnt log in so i cant see any of the icons, not sure if its supposed to do that, also ventrilo is not auto restarting, and hlds is only maxplayering 6 slots
...and also its now only maxing 333 fps
* You didn't include the "screen" parts that the guide says to do. You need to do this, or put & on the end of the line, or the system will run it in the foreground and ignore the rest of the boot process.
* Your command line appears to have a return in the middle of it, so the maxplayers and pingboost parts are not getting read. You'll need to remove this.
Re: auto start for cento linux os
dont do the -AmdS screenname correct cause when i tried it just in terminal it didnt work?
Re: auto start for cento linux os
ok i did the guide and no auto start when restarted sorry im being such a pain in the ass but im learning linux fast most of the stuff i can do right off the top of my head now, thanks to you, but this is something thats totally new to me and i followed the steps and something isnt right, i get the gui now, but no auto start just get at me as soon as you can
thanks again
Re: auto start for cento linux os
cd /root/hlds
screen chrt -r 20 ./hlds_run -game cstrike -autoupdate +map de_inferno +maxplayers 11 &
cd /root/ventrilo/ventsrv
./ventrilo_srv &
there we go to make it easier
is that the right way?
screen chrt -r 20 ./hlds_run -game cstrike -autoupdate +map de_inferno +maxplayers 11 &
cd /root/ventrilo/ventsrv
./ventrilo_srv &
there we go to make it easier
is that the right way?
Re: auto start for cento linux os
from that exact line the only thing working on restart is ventrilo is auto starting which is good cause that never worked before now just gotta get hte server too too hahaha
-
rustydusty1717
- This is my homepage

- Posts: 646
- Joined: Sun Sep 20, 2009 6:15 pm
Re: auto start for cento linux os
cd /root/hlds OR cd /hldsmateckz wrote:cd /root/hlds
screen chrt -r 20 ./hlds_run -game cstrike -autoupdate +map de_inferno +maxplayers 11 &
cd /root/ventrilo/ventsrv
./ventrilo_srv &
there we go to make it easier
is that the right way?
chrt -r 20 ./hlds_run -game cstrike -autoupdate -pingboost 2 +ip youriphere +port 27015 +map de_inferno +maxplayers 11 &
You don't need to use screen AND &, just one or the other. Only disadvantage of using & over the screen way is you can't open the terminal window back up. I've never found a reason why, but that's just me. Also, make sure sys_ticrate 1500 is in your server.cfg file.

Re: auto start for cento linux os
let me try that real quick
Re: auto start for cento linux os
still not working
cd /root/ventrilo/ventsrv
./ventrilo_srv &
cd /root/hlds
chrt -r 20 ./hlds_run -game cstrike -autoupdate -pingboost 2 +port 27015 +maxplayers 11 &
cd /root/ventrilo/ventsrv
./ventrilo_srv &
cd /root/hlds
chrt -r 20 ./hlds_run -game cstrike -autoupdate -pingboost 2 +port 27015 +maxplayers 11 &
