My HLDS_RUN don't run in the server's BOOT

Issues related to software problems
Post Reply
uniongames
Posts: 1
Joined: 2009/09/19 18:35:42
Contact:

My HLDS_RUN don't run in the server's BOOT

Post by uniongames » 2009/09/19 19:02:49

My HLDS_RUN don't run in the server's BOOT!

hello, I'm using CentOS Server 4.7. I have had installed my server in /usr/local/games/hlds_l, I have created a launcher in /etc/init.d/HLDS and inside the HLDS I put these commands:

[code]nice -n -20 su -c "screen -A .m -d -S HLDS1 ./hlds_run -port 27015 -game cstrike -nomaster +maxplayers 20 +map de_dust2 -norestart -insecure +sv_lan 1 -pingboost 2 +mapcyclefile mapcycle.txt +servercfgfile server.cfg 1 -binary ./hlds_i686"[/code]

PS: I have installed the screen package.

I restart the server but it doesn't turn on in automatic. I hope someone can help me.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

My HLDS_RUN don't run in the server's BOOT

Post by pschaff » 2009/09/21 19:52:59

Just putting the file in /etc/init.d/ will not run it at boot time. The appropriate symbolic links in /etc/rc.d/rcX.d (where X=0,1,2,3,4,5,6 - the runlevel) are required, and a service generally supports ate least "start" and "stop". This is normally done using chkconfig. See the other files in /etc/rc.d/init.d for examples. You could also append your commands to /etc/rc.d/rc.local.

User avatar
AlanBartlett
Forum Moderator
Posts: 9323
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: My HLDS_RUN don't run in the server's BOOT

Post by AlanBartlett » 2009/09/22 11:30:41

Please see the template file, [b]sysvinitfiles[/b], that can be found in the [b]/usr/share/doc/initscripts-8.45.25[/b] directory.

Post Reply

Return to “CentOS 4 - Software Support”