Donations
|
If you wish to make a donation you can by clicking the image below.
|
|
|
|
|
26th April, 2005, 08:38 PM
|
Forum Newcomer
|
|
Join Date: Apr 2005
Posts: 9
|
|
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.
|
29th April, 2005, 12:15 PM
|
Rampage
|
|
Join Date: Oct 2004
Posts: 68
|
|
Oh ja, for sure
I would love to see this ...
|
30th April, 2005, 01:16 AM
|
Forum Newcomer
|
|
Join Date: Apr 2005
Posts: 3
|
|
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.
|
30th April, 2005, 02:51 AM
|
|
Godlike
|
|
Join Date: Mar 2004
Location: Penicuik, Scotland
Posts: 384
|
|
Get the start script cron'd
__________________
Thanks
[_]frisp
|
1st May, 2005, 05:30 AM
|
Forum Newcomer
|
|
Join Date: Apr 2005
Posts: 9
|
|
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.
|
1st May, 2005, 07:50 PM
|
Forum Newcomer
|
|
Join Date: Apr 2005
Posts: 3
|
|
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.
|
1st May, 2005, 07:50 PM
|
Killing Spree
|
|
Join Date: Feb 2005
Posts: 19
|
|
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
|
6th May, 2005, 03:19 AM
|
|
Rampage
|
|
Join Date: Jul 2004
Location: Atlanta, GA
Posts: 69
|
|
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.
|
6th May, 2005, 08:43 AM
|
|
Unstoppable
|
|
Join Date: Nov 2004
Location: Bavaria
Posts: 197
|
|
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.
|
6th May, 2005, 09:53 AM
|
|
Forum Newcomer
|
|
Join Date: May 2005
Location: South Elmsall, West Yorkshire, Uk, Nr Earth
Posts: 10
|
|
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)
|
6th May, 2005, 10:42 AM
|
Holy Shit!!
|
|
Join Date: Oct 2004
Posts: 1,205
|
|
That's a very basic control panel. I've seen far better ones. Only problem is that they usually aren't free to download.
|
6th May, 2005, 11:20 AM
|
|
Unstoppable
|
|
Join Date: Nov 2004
Location: Bavaria
Posts: 197
|
|
|
6th May, 2005, 06:11 PM
|
|
Rampage
|
|
Join Date: Jul 2004
Location: Atlanta, GA
Posts: 69
|
|
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.
|
6th May, 2005, 09:20 PM
|
Forum Newcomer
|
|
Join Date: Apr 2005
Posts: 9
|
|
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.
|
6th May, 2005, 09:46 PM
|
Holy Shit!!
|
|
Join Date: Oct 2004
Posts: 1,205
|
|
I would like to download it, the only problem is that i can't even reach your site :p
|
9th May, 2005, 08:52 PM
|
|
Killing Spree
|
|
Join Date: Apr 2005
Posts: 16
|
|
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?
|
9th May, 2005, 08:54 PM
|
Forum Newcomer
|
|
Join Date: Apr 2005
Posts: 9
|
|
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?
|
10th May, 2005, 12:51 AM
|
|
Rampage
|
|
Join Date: Jul 2004
Location: Atlanta, GA
Posts: 69
|
|
Hence the beauty of a simple cron executed script.
|
24th May, 2005, 02:53 PM
|
Forum Newcomer
|
|
Join Date: Apr 2005
Posts: 3
|
|
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?
|
24th May, 2005, 05:11 PM
|
|
Unstoppable
|
|
Join Date: Nov 2004
Location: Bavaria
Posts: 197
|
|
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")
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|