You are an unregistered user, you can register here
Navigation

Information

Site

Donations
If you wish to make a donation you can by clicking the image below.


 
Go Back   The Unreal Admins Page > Forums > Unreal Admins > Unreal Tournament 2003/2004 > UT2003/4 Server - Linux Specific

Reply
Thread Tools Display Modes
  #1  
Unread 26th April, 2005, 08:38 PM
tylerhunt tylerhunt is offline
Forum Newcomer
 
Join Date: Apr 2005
Posts: 9
Default Linux Startup Script

I started working on an init.d style initialization script for the UT2004 dedicated server. Is there any interest from the community on a release of this once I get more features built in? For those who may not know, it would provide the following functionality:

Automatic server startup on boot:
Code:
chkconfig ut2004server on
Manual start, restart, stop, status:
Code:
/etc/init.d/ut2004server [start|restart|stop|status]
The beauty of this is that it integrates just like any other server that's part of the OS, and uses the server management capabilities already built in to the system.

Let me know if there's interest for something like this, or if you have a need for features in addition to the ones listed here.
Reply With Quote
  #2  
Unread 29th April, 2005, 12:15 PM
Gomjaba Gomjaba is offline
Rampage
 
Join Date: Oct 2004
Posts: 68
Default

Oh ja, for sure

I would love to see this ...
Reply With Quote
  #3  
Unread 30th April, 2005, 01:16 AM
jadedlogik jadedlogik is offline
Forum Newcomer
 
Join Date: Apr 2005
Posts: 3
Default

That'd be nice...being that we're sort of on the topic...Anyone know of a good server restart sort of thing? I have a server that goes down on occasion with seg faults or map issues and I want it to bring itself back up on its own.
Reply With Quote
  #4  
Unread 30th April, 2005, 02:51 AM
frisp's Avatar
frisp frisp is offline
Godlike
 
Join Date: Mar 2004
Location: Penicuik, Scotland
Posts: 384
Default

Get the start script cron'd
__________________
Thanks

[_]frisp

Reply With Quote
  #5  
Unread 1st May, 2005, 05:30 AM
tylerhunt tylerhunt is offline
Forum Newcomer
 
Join Date: Apr 2005
Posts: 9
Default

Good to hear there's some interest. In that case I'll push forward and try to get the stop/restart capabilities working. It currently only start and provides limited status information.
Reply With Quote
  #6  
Unread 1st May, 2005, 07:50 PM
jadedlogik jadedlogik is offline
Forum Newcomer
 
Join Date: Apr 2005
Posts: 3
Default

hey frisp, you mean this script that tyler is working on right? I'm linux intermediate...heh. I know theres another script out there as well, i think it was made by someone here which is supposed to do something similar without linking it to the system directly as a service sort of thing for linux.
Reply With Quote
  #7  
Unread 1st May, 2005, 07:50 PM
{ACDC}lordnightmare {ACDC}lordnightmare is offline
Killing Spree
 
Join Date: Feb 2005
Posts: 19
Default

oddly enough we had the start script cronned that we made and it basically was making server copies every couple of minutes or whatever we had the check set to. so I had a pile of ut servers running. I am definately looking for something like fragism or one of those other companies have, so that when something crashes or messes up it just restarts the game. we run an extremely popular vctf server and I hate coming back and seeing it offline, and then I get a bunch of emails wondering if i took them offline. any solution would be great
__________________
Avail Networks, LLC

Shared Hosting | Reseller Hosting | Business Hosting | Dedicated Servers | Voice | Game Servers | Remote Backup
Reply With Quote
  #8  
Unread 6th May, 2005, 03:19 AM
jsumners's Avatar
jsumners jsumners is offline
Rampage
 
Join Date: Jul 2004
Location: Atlanta, GA
Posts: 69
Default

Just about everyone here has written their own scripts to manage their UT servers. For example, I wrote one to work with screen and cron. No need to have root level access to start the server. That is just a bad idea.
Reply With Quote
  #9  
Unread 6th May, 2005, 08:43 AM
rapmoc's Avatar
rapmoc rapmoc is offline
Unstoppable
 
Join Date: Nov 2004
Location: Bavaria
Posts: 197
Default

Quote:
Just about everyone here has written their own scripts to manage their UT servers.
Aye.

Quote:
For example, I wrote one to work with screen and cron.
I use the "start-stop-daemon" in my start script. Have a look at /etc/init.d/skeleton , then you should be able to write your own script in few minutes.

Quote:
That is just a bad idea.
Reply With Quote
  #10  
Unread 6th May, 2005, 09:53 AM
T1Cybernetic's Avatar
T1Cybernetic T1Cybernetic is offline
Forum Newcomer
 
Join Date: May 2005
Location: South Elmsall, West Yorkshire, Uk, Nr Earth
Posts: 10
Thumbs up

I rent some ut2004 servers from snakeservers.net and they recently started
to use a nifty start, stop, restart tool of some kind from a web browser?

Anyone got any ideas what "script" or "tool/s" that could be as im actual
pretty interested in getting my hands on something like this so that it
makes it a little easier to start, stop the server when needed to add
mods and updates etc.

Snakeservers.net ut2004 servers are run on linux by the way.
Click the pic below for a larger image and take a look for yourself!

It's pretty basic but it does it's job realy well!

__________________
Empty your mind. Be formless, shapeless, like water. Now you put water into a cup, it becomes the cup. You put water into a bottle, it becomes the bottle. You put it into a teapot, it becomes the teapot. Now, water can flow, or it can crash! Be water, my friend. (Bruce Lee)
Reply With Quote
  #11  
Unread 6th May, 2005, 10:42 AM
kawaii kawaii is offline
Holy Shit!!
 
Join Date: Oct 2004
Posts: 1,205
Default

That's a very basic control panel. I've seen far better ones. Only problem is that they usually aren't free to download.
__________________
Stats!
Reply With Quote
  #12  
Unread 6th May, 2005, 11:20 AM
rapmoc's Avatar
rapmoc rapmoc is offline
Unstoppable
 
Join Date: Nov 2004
Location: Bavaria
Posts: 197
Default

Quote:
I've seen far better ones.
Me too.
K-Play
Multiplay (Clanforge)
NGZ

Quote:
Only problem is that they usually aren't free to download.
I found some for an affordable price.
http://www.clan-point.de
http://www.uniquesoft.de
http://www.ispware.de/produkte/gameadmin.php
http://www.szsoft.de/clanadmin.php
Reply With Quote
  #13  
Unread 6th May, 2005, 06:11 PM
jsumners's Avatar
jsumners jsumners is offline
Rampage
 
Join Date: Jul 2004
Location: Atlanta, GA
Posts: 69
Default

Quote:
Originally Posted by rapmoc
Aye.


I use the "start-stop-daemon" in my start script. Have a look at /etc/init.d/skeleton , then you should be able to write your own script in few minutes.


The init.d skeleton is for services that should be started when the machine boots. That is what I was saying is a bad idea. The UT2k4 process is not a vital process and should not be started via the init scripts. Much better to add it to an unprivileged user's crontab. It will still start at boot time but it won't be seen as a vital system service.
Reply With Quote
  #14  
Unread 6th May, 2005, 09:20 PM
tylerhunt tylerhunt is offline
Forum Newcomer
 
Join Date: Apr 2005
Posts: 9
Default Version 0.1 Release

Wow, this seems like a fairly heated topic of discussion now. Whether or not you think a UT server should be started by init.d is up for debate, but I think have that type of script with flexibility and consistency it provides will be useful people, at the very least for those with Linux server administration backgrounds.

The ucc-bin file is a poorly implemented server, at least from a process interaction viewpoint. Just the fact that you launch it from its own directory is a major pain. I got around this with my script by writing a helper application that spawns a child process to run the server, and then it monitors for a TERM signal, and kills the child at the appropriate time. I had to do this to get the stop/restart functionality to work as desired.

Anyways, without further ado, I give you Unreal Tournament 2004 Server Daemon 0.1. It is released under the GPL, and you can download it from http://projects.tylerhunt.com/. Try it out and let me know what you think.
Reply With Quote
  #15  
Unread 6th May, 2005, 09:46 PM
kawaii kawaii is offline
Holy Shit!!
 
Join Date: Oct 2004
Posts: 1,205
Default

I would like to download it, the only problem is that i can't even reach your site :p
__________________
Stats!
Reply With Quote
  #16  
Unread 9th May, 2005, 08:52 PM
xucwella's Avatar
xucwella xucwella is offline
Killing Spree
 
Join Date: Apr 2005
Posts: 16
Default

I have the same problem with the server crashing as well, and the restart function in the script that i am currently using does not work.. so will your script respawn a new server if the current running server crashes due to errors?
Reply With Quote
  #17  
Unread 9th May, 2005, 08:54 PM
tylerhunt tylerhunt is offline
Forum Newcomer
 
Join Date: Apr 2005
Posts: 9
Default

Not presently, but that's on the list of planned features for the next version. Anything else that would be useful for the next release?
Reply With Quote
  #18  
Unread 10th May, 2005, 12:51 AM
jsumners's Avatar
jsumners jsumners is offline
Rampage
 
Join Date: Jul 2004
Location: Atlanta, GA
Posts: 69
Default

Hence the beauty of a simple cron executed script.
__________________
/~jsumners/
Reply With Quote
  #19  
Unread 24th May, 2005, 02:53 PM
jadedlogik jadedlogik is offline
Forum Newcomer
 
Join Date: Apr 2005
Posts: 3
Default

so mr. jsumners...what would be useful in a simple script to be executed by cron? Just a "cd /unreal ./ucc-bin etc etc etc" two line script ? And where the heck would it have to be in cron?
Reply With Quote
  #20  
Unread 24th May, 2005, 05:11 PM
rapmoc's Avatar
rapmoc rapmoc is offline
Unstoppable
 
Join Date: Nov 2004
Location: Bavaria
Posts: 197
Default

Quote:
Originally Posted by jsumners
The init.d skeleton is for services that should be started when the machine boots.
Sure.

Quote:
That is what I was saying is a bad idea. The UT2k4 process is not a vital process and should not be started via the init scripts.
It's vital for me The server runs only ut2k4 servers and a vsftpd, nothing else is installed or started.

Quote:
Much better to add it to an unprivileged user's crontab. It will still start at boot time but it won't be seen as a vital system service.
The start-stop-daemon starts the ut2004 server as a unprivileged user ("games")
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:23 AM.


 

All pages are copyright The Unreal Admins Page.
You may not copy any pages without our express permission.