auto start for cento linux os

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
mateckz
Compulsive poster
Compulsive poster
Posts: 65
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Wed Mar 10, 2010 5:20 pm

auto start for cento linux os

Post by mateckz »

could someone post the exact way to auto start hlds on rcon quit, and on box restart
THANKS!!!!!!! :D
rustydusty1717
This is my homepage
This is my homepage
Posts: 645
Joined: Sun Sep 20, 2009 6:15 pm

Re: auto start for cento linux os

Post by rustydusty1717 »

Image
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: auto start for cento linux os

Post by Edge100x »

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:

Code: Select all

nano /etc/conf.d/local.start
On CentOS, just use this instead:

Code: Select all

nano /etc/rc.local
As far as making the server auto-restart after a crash, the hlds_run script that Valve includes does this automatically.
mateckz
Compulsive poster
Compulsive poster
Posts: 65
Joined: Wed Mar 10, 2010 5:20 pm

Re: auto start for cento linux os

Post by mateckz »

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]
mateckz
Compulsive poster
Compulsive poster
Posts: 65
Joined: Wed Mar 10, 2010 5:20 pm

Re: auto start for cento linux os

Post by mateckz »

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 :) :oops:
mateckz
Compulsive poster
Compulsive poster
Posts: 65
Joined: Wed Mar 10, 2010 5:20 pm

Re: auto start for cento linux os

Post by mateckz »

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
mateckz
Compulsive poster
Compulsive poster
Posts: 65
Joined: Wed Mar 10, 2010 5:20 pm

Re: auto start for cento linux os

Post by mateckz »

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 :P
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: auto start for cento linux os

Post by Edge100x »

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
Two things:

* 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.
mateckz
Compulsive poster
Compulsive poster
Posts: 65
Joined: Wed Mar 10, 2010 5:20 pm

Re: auto start for cento linux os

Post by mateckz »

dont do the -AmdS screenname correct cause when i tried it just in terminal it didnt work?
mateckz
Compulsive poster
Compulsive poster
Posts: 65
Joined: Wed Mar 10, 2010 5:20 pm

Re: auto start for cento linux os

Post by mateckz »

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 :mrgreen: thanks again
mateckz
Compulsive poster
Compulsive poster
Posts: 65
Joined: Wed Mar 10, 2010 5:20 pm

Re: auto start for cento linux os

Post by mateckz »

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?
mateckz
Compulsive poster
Compulsive poster
Posts: 65
Joined: Wed Mar 10, 2010 5:20 pm

Re: auto start for cento linux os

Post by mateckz »

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
This is my homepage
Posts: 645
Joined: Sun Sep 20, 2009 6:15 pm

Re: auto start for cento linux os

Post by rustydusty1717 »

mateckz 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?
cd /root/hlds OR cd /hlds
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.
Image
mateckz
Compulsive poster
Compulsive poster
Posts: 65
Joined: Wed Mar 10, 2010 5:20 pm

Re: auto start for cento linux os

Post by mateckz »

let me try that real quick
mateckz
Compulsive poster
Compulsive poster
Posts: 65
Joined: Wed Mar 10, 2010 5:20 pm

Re: auto start for cento linux os

Post by mateckz »

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 &
Post Reply