arkmanager / ark-server-tools

Set of server tools used to manage ARK: Survival Evolved servers on Linux
MIT License
678 stars 143 forks source link

Run Command with @all #1230

Closed Diyagi closed 2 years ago

Diyagi commented 2 years ago

Im having a issue trying to use the command arkmanager run @all, when i use this command, arkmanager dosent properly start all instances, instead, it starts the first instance then hangs, it waits for this instance to exit (wait for an exit code) and then starts the next instance.

While i could use arkmanager start @all, it makes things harder inside a container environment, since after starting all instances, the command will then exit making the container stop.

I also tried arkmanager start @all with arkmanager wait --all --stopped, but during tests, whenever i restart the first instance, the wait command would exit making the container stop.

klightspeed commented 2 years ago

arkmanager run runs the instance in the foreground, and so can only run a single instance.

arkmanager wait --all --stopped without an instance specified will only wait on the default instance.

Diyagi commented 2 years ago

arkmanager run runs the instance in the foreground, and so can only run a single instance.

arkmanager wait --all --stopped without an instance specified will only wait on the default instance.

Aye, I looked at the code and noticed i was supposed to use @all, i though that just using -all was enough to reference all instances. My container is working now, ty for your help.