Multiple instances of server? - Printable Version +- Xonotic Forums (https://forums.xonotic.org) +-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3) +--- Forum: Xonotic - Server Administration (https://forums.xonotic.org/forumdisplay.php?fid=16) +--- Thread: Multiple instances of server? (/showthread.php?tid=3941) |
Multiple instances of server? - end user - 02-09-2013 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 RE: Multiple instances of server? - Mr. Bougo - 02-09-2013 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!) RE: Multiple instances of server? - end user - 02-09-2013 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. RE: Multiple instances of server? - Mr. Bougo - 02-10-2013 -sessionid ft would work too, it doesn't need to be unique across all Xonotic servers, it's just a local identifier |