Space240 Posted December 19, 2021 Share Posted December 19, 2021 (edited) Hi everyone! Is there any way to start 2(or more) dedicated servers from one user with different folders (config, db, etc)? One for freeplay, the other for challenges without respawn and other changes. For now It starts only one server by default Game version: 41 IWBMS System: Ubuntu 21.10 user's (name: steam) root dir contain: pz_dir (contain start-server.sh, PZ32/64.jsons etc) Zomboid (containt options.ini, db, servertest.ini etc) Steam, steamcmd folders What is the best option: User "steam" launch 2 screen's 1st screen: launch ~/pz_dir/start-server.sh that contains config & other from ~/Zomboid 2nd screen: launch ~/pz_dir/start-server-surv.sh that contains config & other from ~/Zomboid_surv I tried to add param -cachedir into ProjectZomboid64.json, but it fails: pzexe: vmArg (json) 10: -cachedir=./Zomboid_surv pzexe: using jvm "/home/steam/Steam/steamapps/common/Project Zomboid Dedicated Server/jre64/lib/server/libjvm.so" Unrecognized option: -cachedir=./Zomboid_surv Failed to create Java VM Edited December 19, 2021 by Space240 Link to comment Share on other sites More sharing options...
Space240 Posted December 20, 2021 Author Share Posted December 20, 2021 (edited) Ok, I found solution in this way: pz_dir is linked to /Steam/steamapps/common/Project Zomboid Dedicated Server/ pz-f.sh & pz-s.sh launch screen's with cachedir and use folders freeplay & survival into pz_dir(/Steam/steamapps/common/Project Zomboid Dedicated Server/) $ whoami steam $ pwd /home/steam $ ls pz_dir pz-f.sh pz-s.sh Steam steamcmd $ cat pz-f.sh screen -dmS pz_srv_freeplay sh ./pz_dir/start-server.sh -cachedir=Zomboid_freeplay $ cat pz-s.sh screen -dmS pz_srv_survival sh ./pz_dir/start-server.sh -cachedir=Zomboid_survival $ ls pz_dir java linux64 ProjectZomboid64 start-server.sh steamclient.so jre64 media ProjectZomboid64.json stdlib.lbc Zomboid_freeplay libpzexe_jni64.so natives pzexe.jar stdlib.lua Zomboid.src.tar license ProjectZomboid32.json serialize.lua steam_appid.txt Zomboid_survival $ ls pz_dir/Zomboid_freeplay db Logs messaging options.ini Saves Server server-console.txt Statistic $ ls pz_dir/Zomboid_survival db Logs messaging options.ini Saves Server server-console.txt Statistic Port usage: 16261 & 16264 - start with ~1-2 minute delay for normal UPnP(8766 & 8767) maping Question closed. Edited December 20, 2021 by Space240 Link to comment Share on other sites More sharing options...
Dr_Cox1911 Posted December 23, 2021 Share Posted December 23, 2021 For linux hosting I can really recommend the LGSM-scripts. With this hosting is pretty easy and yet so customizable. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now