Start up script

From: blnukem (bill_at_hotmail.com)
Date: 05/31/04


Date: Mon, 31 May 2004 16:07:13 GMT

Hi All

I just set up a quake3 server for my son and I'm VERY new to Linux I placed
the game in "usr/games/Q3TA" and I can start I with this command "./q3ded
+set dedicated 2 +exec server.cfg" But what I want to do to simplify this
for him is to start the game as a service when the box is booted up this box
has no monitor or GUI.

What I tried to do is create a script that looks like this:

#!/bin/sh
./q3ded +set dedicated 2 +exec server.cfg

Then SSH in to the box and did this:

cp /usr/games/Q3TA/Q3TA /etc/init.d/Q3TA
chmod 755 /etc/init.d/Q3TA
chkconfig --add Q3TA

And I get :

service Q3TA does not support chkconfig

Can someone please help me with this I cant seem to figure it out

Thanks In advance
Blnukem


Quantcast