Tremulous Forum

General => Troubleshooting => Topic started by: Odin on November 06, 2006, 02:25:14 am

Title: Startup
Post by: Odin on November 06, 2006, 02:25:14 am
I've always wondered how to get a Tremulous server(or any quake-3 based server) to run on startup(in Linux) in the background, so that it does not flood the entire screen with server messages, and stall the bootup, like if you were to place something in rc.local.
This is done in the Debian unstable Tremulous port. How exactly do you do it? I don't like having to ssh into my headless server and run it, every time I boot up the server.
Title: Startup
Post by: kevlarman on November 06, 2006, 02:35:43 am
you could put put something in init.d along the lines of
Code: [Select]
sudo -u <tremuser> /path/to/tremded.x86 +set dedicated 2 +exec server.cfg & (i'm aware that there is probably a better way to do this than sudo, i'm just too lazy to find it) and symlink to it from rc.whatever. if you really want to know what they do, just grab the .deb, extract the contents (it's an ar archive)), then extract the tarball (i forget the name, it's the one that isn't control.tgz), the files you are interested in are etc/init.d/tremulous-server and etc/default/tremulous-server. i would have done all of that myself, but i don't feel like rebooting right now.