Multiple server launching (from single file?)
Posted: Fri Dec 15, 2017 4:19 am
This question is aimed at people who run a few different servers on a Linux based system.
I currently have a few different servers up and running (5-6 ish) where I have the standard "folder" setup. Everything server related in the folder, except trackinfos where as I have them
However as soon as a server update comes out, I have to change a lot of them, which is both consuming and confusing. The servers files are named like "mxserverNAT" (nationals) and "mxserverSX" for the ease of knowing which file (when running) is which, so I can differentiate them when I executeso I can see which PID to kill.
To start the server I do which contains the code
Would it be possible to do something like:
I currently have a few different servers up and running (5-6 ish) where I have the standard "folder" setup. Everything server related in the folder, except trackinfos where as I have them
Code: Select all
../shared/trackinfos/*
Code: Select all
top -bc | grep mxserver
To start the server I do
Code: Select all
./run
Code: Select all
nohup ./mxserverSX --args-file serverargs.txt > consolelog.log 2>&1&
where "mxserverCOLLECTIVE" is the one and only file used to start all servers. Also in this scenario, it'd be important to tell the difference from each instance running in the "top" command, which is why I name them differently now. So, could this be done, still being able to differentiate which instance is which of the server?nohup ./../mxserverCOLLECTIVE --args-file serverargs.txt > consolelog.log 2>&1&