no need for a script per se.  that is one way.  Another is by
using screen.  I use this argument to launch my cs server inside
screen(including the quotation marks):

sudo -u hlds sh -c "cd /servers/hlds;screen -A -m -d -S hlds
./hlds_run -game cstrike -debug +port 27015 +maxplayers 11
-autoupdate +map cs_tiki -steamuser <my username> +ip
192.168.0.201 -steampass <my password>"

place this argument inside your /etc/rc/d/rc.l.ocal file.  It
will autostart at every boot as the user hlds(which must be created).



Ben H. wrote:

Thanks Pat but my head is spinning lol. :) i am very new to the linux world
and havnt down scripting. Not to be a pain or anything but could i get a
little more detailed description of what i have to do, speficically what the
cs script is that i need. I am running CS 1.6 on Fedora. Thank you very much

ben H


----- Original Message ----- From: "Pat Sebring" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, May 03, 2005 7:55 PM Subject: Re: [hlds_linux] Linux HLDS start on boot



Linux:
Add a line in /etc/inittab pointing to your CS init script and have it
run at runlevel 3 usually.  Something like:
"cs:3:respawn:sudo -u cstrike /usr/local/etc/cstrike.sh"
You should disable the auto-restart in srcds_run if you use this
method.  You can also just add the init script to /etc/rc.d/init.d/

Freebsd:
/usr/local/etc/rc.d
Create your own init script and place it in that directory.

-pat


Ben H. wrote:


This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Hello everyone. Is there a way that i can have my linux server start up

my HLDS CS1.6 server at boot without me logging in. also how do i run more then one server off the box i have?

ben h.
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,

please visit:

http://list.valvesoftware.com/mailman/listinfo/hlds_linux




_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,

please visit:

http://list.valvesoftware.com/mailman/listinfo/hlds_linux



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


-- Computer House Calls, Networks, Security, Web Design: http://www.emmanuelcomputerconsulting.com What businesses are in Brunswick, Maryland? Check Brunswick First! http://www.checkbrunswickfirst.com My "Foundation" verse: Isa 54:17 No weapon that is formed against thee shall prosper; and every tongue that shall rise against thee in judgment thou shalt condemn. This is the heritage of the servants of the LORD, and their righteousness is of me, saith the LORD.

-- carpe ductum -- "Grab the tape"
CDTT (Certified Duct Tape Technician)

Linux user #322099
Machines:
206822
256638
276825
http://counter.li.org/

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to