Create an account

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convenient Xonotic Server Management Script

NOTE: Make sure you have Bash and GNU Screen installed before you try using this, and that you adjust the directories to match your setup!


I wrote this script to make life easier for myself when running my Xonotic server. It also allows me to easily expand to several servers should I wish to. It uses GNU Screen so that I can easily attach and detach from any servers i'm running.


The script comes in two parts. A utility and a launcher for the server. Place both wherever you want. Make sure to edit the bottom line of to point to xonotic-servertool.


xonotic-servertool is the main script. This handles starting, stopping, restarting, and showing the status of the server. You should NOT need to edit this file at any point unless you wish to improve on it's features. This is the launching file for your server. You can have several of these for different servers if you wish.

Below is a key to what each line of this launcher does:

"NAME" = The name of the screen session.
"DESC" = The description for the screen session.
"DIR" = The directory which contains the xonotic-dedicated binary you are using.
"DAEMON" = The path to your xonotic-dedicated binary.
"PARAMS" = The paramers for starting the server, this is where you point it to your server configuration file.
"DATA" = This is the name of your dedicated server binary

The bottom line tells it where to look for the Xonotic server tool.


To do something to the server. You will always run the script with a command after it. To see a list of available commands run on it's own.

To START the server, type start
To STOP the server, type stop
To RESTART the server, type restart
To see the STATUS of the server, type status

(NOTE: I'm planning to make status show the output of a status command on the console shortly).

When the server is running, you can attach to the screen session using:
screen -rS (NAME you put in
e.g. screen -rS xonotic

To detach from the screen session type:
Ctrl + A + D

- Pricetx.

Possibly Related Threads...
Thread Author Replies Views Last Post
  Server does not start saddesad 2 221 11-25-2020, 04:39 AM
Last Post: saddesad
  [NEED HELP] Server failed to open socket on address... Hexactinal 2 226 11-21-2020, 04:28 PM
Last Post: Hexactinal
  Server Hosting Issue Saevus 3 849 11-11-2020, 02:53 PM
Last Post: :[:{b_e*r^f}:]:
  Docker Xonotic Dedicated Server ich777 15 3,159 10-08-2020, 11:15 AM
Last Post: BuddyFriendGuy
  BuddyFriendGuy Fun Server BuddyFriendGuy 22 8,558 10-08-2020, 11:14 AM
Last Post: BuddyFriendGuy
Rainbow Kotangєns' independent server Kotangens 2 579 10-07-2020, 05:08 AM
Last Post: L497
  RaspberryPi4 Server ablyveiled 2 941 08-19-2020, 10:36 PM
Last Post: ballerburg9005
Question [NEED HELP] Server uses 40% CPU whereas Nexuiz server runs with max 10% e-pig 6 2,431 08-19-2020, 10:17 PM
Last Post: ballerburg9005
  [SOLVED] I can't create my server. Kotangens 11 1,482 07-22-2020, 04:42 AM
Last Post: Kotangens
Information [SOLVED] Server stops when I close command prompt on my PC Jewel 2 683 06-01-2020, 07:11 AM
Last Post: Jewel

Forum Jump:

Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-