Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple instances of server?

#1
How do I run multiple instances of the server for different game modes? Do I have to have two Xonotic folders? Xonotic and Xonotic2.

I tried creating two different cfg and sh files and editing the second sh to reflect the file name but no go when I launch the second sh file.

Thanks
[MoFo] Servers - North America - Hosted in Montreal Canada - Admin DeadDred [MoFo]
Reply

#2
You need to use different session IDs for each instance, otherwise they will share databases and thus overwrite eachother's files. This is why we have lock files to prevent this.

You need to pass the argument -sessionid blahblah to the server_linux.sh script to use a different session id. Make the session id "readable" enough, because it appears in the database filenames and helps you identify them. You don't need different config files or directories, those can be shared. I think you can use +serverconfig MySecondServer.cfg as argument to use something else than server.cfg as config file, so you don't even need to edit the launching script (but feel free to!)
Reply

#3
Hi


Thanks


So I created a new server-ft.cfg (for freezetag and set the parameters I needed and changed port) and created a server_linux_ft.sh and adjusted the sh file setting to the new server-ft.cfg.

I started the new server with

Quote:./server_linux_ft.sh -sessionid freakzillaft

So far its working.

Thanks.


(02-09-2013, 08:03 PM)Mr. Bougo Wrote: You need to use different session IDs for each instance, otherwise they will share databases and thus overwrite eachother's files. This is why we have lock files to prevent this.

You need to pass the argument -sessionid blahblah to the server_linux.sh script to use a different session id. Make the session id "readable" enough, because it appears in the database filenames and helps you identify them. You don't need different config files or directories, those can be shared. I think you can use +serverconfig MySecondServer.cfg as argument to use something else than server.cfg as config file, so you don't even need to edit the launching script (but feel free to!)
[MoFo] Servers - North America - Hosted in Montreal Canada - Admin DeadDred [MoFo]
Reply

#4
-sessionid ft would work too, it doesn't need to be unique across all Xonotic servers, it's just a local identifier Wink
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  Latest Beta Server evit 1 149 04-02-2021, 04:06 PM
Last Post: end user
  Server does not start saddesad 2 290 11-25-2020, 04:39 AM
Last Post: saddesad
  [NEED HELP] Server failed to open socket on address... Hexactinal 2 316 11-21-2020, 04:28 PM
Last Post: Hexactinal
  Server Hosting Issue Saevus 3 932 11-11-2020, 02:53 PM
Last Post: :[:{b_e*r^f}:]:
  Docker Xonotic Dedicated Server ich777 15 3,346 10-08-2020, 11:15 AM
Last Post: BuddyFriendGuy
  BuddyFriendGuy Fun Server BuddyFriendGuy 22 8,769 10-08-2020, 11:14 AM
Last Post: BuddyFriendGuy
Rainbow Kotangєns' independent server Kotangens 2 635 10-07-2020, 05:08 AM
Last Post: L497
  RaspberryPi4 Server ablyveiled 2 1,030 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,562 08-19-2020, 10:17 PM
Last Post: ballerburg9005
  [SOLVED] I can't create my server. Kotangens 11 1,634 07-22-2020, 04:42 AM
Last Post: Kotangens

Forum Jump:


Users browsing this thread:
1 Guest(s)

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