Help with multiple server start

Melon

Supporter
Supporter
Hello evyrone
I have a Dedicated server with ubuntu and i want to start all of my minecraft servers with one ssh command.
For command i need to make a screen and start the server.

Thank you in advice and sorry for my bad english
 

MinMax

Supporter
Supporter
To create a screen type in
screen -S (name)

and then do
screen -ls
[ to list screens ]
you will see list of screen with number ( PID ) before the name ( example : 15499.mcserver1 )
now once you have PID ( screen number )
type
screen -r (PID/SCREEN NUMBER)

and you should be inside the screen, once your in there locate your ./start.sh cmd and run it ( cd /path/to/server & ./st* )

to exit screen press CTRL + A and D and it will be detached
 

Melon

Supporter
Supporter
Of corse but i want to start multiple servers at the same time.
I want to run startserver.sh and all of my servers to create screen;s with our console
 

MinMax

Supporter
Supporter
I don't understand

Can you make an example ?
screen have specific name / id ,

say folder ''mc'' have another folder : ''server1'', in this folder u have server 1 files in it.

so you would create a screen to run server

1. Create screen
2. Run server 1
3. Detach ( ctrl +a +d )

and u go to another folder : '' server2'', in this folder u have server 2 files on it.

1. Create screen
2. Run server 2
3. Detach

thats all and u can repeat the process to make 100000+ servers if u want
 

Melon

Supporter
Supporter
OK
Can you contact me on skype or discord to explain more better because i want to make this in one command
Not manualy
 
BlackSpigot General Chat
Rules Help Users
    BlackSpigot.com @ BlackSpigot.com: @BlackSpigot.com send pv I have responded
    Top