Webmin to admin GameServers

1st post! trying to get webmin to run a couple of game servers. Enemy Territory to be specific. But after closing the webmin browser window, the server will die after a couple of mins, OR whenever the first person tries to connect.

Linux Games 157 This topic was started by ,


data/avatar/default/avatar39.webp

1 Posts
Location -
Joined 2003-09-06
1st post!
 
trying to get webmin to run a couple of game servers.
Enemy Territory to be specific. But after closing the webmin browser window, the server will die after a couple of mins, OR whenever the first person tries to connect. Not sure why,....
 
 
 
Heres what I do,....
 
 
 
Create a new user named "tek"
create teksrv.cfg and place in /home/tek/.etwolf/etmain
 
Then I create a custom command in webmin
 
Name: Start ET Server
Command: ./etded +exec teksrv.cfg +set dedicated 2
Start In: /home/games/et
Run as user: tek
Users Environment [X] (check marked)
 
After clicking the "Start ET Server" button, the server starts up fine, people can connect, UNTIL I close the webmin window.
 
 
 
What im aiming for....
 
 
 
Id like to run my gameservers the same way services are run.
 
example: if you want to restart your apache server, you can type
 
/sbin/service httpd restart
 
 
I would like to be able to restart my ET server using the same method.
 
/sbin/service tekET restart
 
Not exactly sure how to do this, but I have taken a look at the scripts that are in my /etc/init.d dir and they seem to be the ones that control these services. Although when i view them with VI, it looks like japanese to me.
 
Any help on this subject would be greatly appreciated and possibly greatly rewarded as well 8).
 
Thanks in advance.

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar37.webp

1 Posts
Location -
Joined 2003-09-04
Quote:1st post!

I would like to be able to restart my ET server using the same method.

/sbin/service tekET restart

Not exactly sure how to do this, but I have taken a look at the scripts that are in my /etc/init.d dir and they seem to be the ones that control these services. Although when i view them with VI, it looks like japanese to me.

Any help on this subject would be greatly appreciated and possibly greatly rewarded as well 8).

Thanks in advance.

well prefer to use initscripts, but i can not attach
files to this message, sorry. Look at linuxfromscratch.org there is a suite of functions
in order to run etded as deamon.

data/avatar/default/avatar12.webp

95 Posts
Location -
Joined 2002-11-26
Quote:Quote:1st post!

I would like to be able to restart my ET server using the same method.

/sbin/service tekET restart

Not exactly sure how to do this, but I have taken a look at the scripts that are in my /etc/init.d dir and they seem to be the ones that control these services. Although when i view them with VI, it looks like japanese to me.

Any help on this subject would be greatly appreciated and possibly greatly rewarded as well 8).

Thanks in advance.

well prefer to use initscripts, but i can not attach
files to this message, sorry. Look at linuxfromscratch.org there is a suite of functions
in order to run etded as deamon.

Just as an after thought, you could see if they have a dedicated ET server for linux, and just run a dedicated that way via a shell script. This is generally how I run mine. I can have them added to my startup menu, but I prefer to manage them myself vice having any game servers start on Linux startup. Yes there is ways of doing what you want, but you may want to get your hands on the dedicated linux versions first
One way is to create your own startup script in /etc/init.d/dedicatedservername, then create a symbolic link to the /etc/rc2.d/S69etdedicated (S=startup), for example. Another would be to add a line starting the dedicated server to the rc.local file. Do you really want game servers running in the background where you can't see them ?

data/avatar/default/avatar12.webp

2 Posts
Location -
Joined 2003-09-16
1st post! 
hey hydrolux
can we discuss this on msn plz ?
add me djeezeus hotmail.com
 
ty !

data/avatar/default/avatar07.webp

1 Posts
Location -
Joined 2003-10-13
What u are doing wrong is you are not using screen to run the server.
 
Look here:
 
this command is the command I use to run my server. But I dont use a SERVICE.
 
I would like help to run it as a service. But I know what u are doing wrong.
 
 
This is how U load it
 
Name: Start ET Server
Command: nice --20 screen ./etded +exec teksrv.cfg +set dedicated 2
Start In: /home/games/et
Run as user: tek
Users Environment [X] (check marked)
 
See the difference in yours.
Name: Start ET Server
Command: ./etded +exec teksrv.cfg +set dedicated 2
Start In: /home/games/et
Run as user: tek
Users Environment [X] (check marked)
 
LOL I would like to see u try it. U will like it.