phantom icon indicating copy to clipboard operation
phantom copied to clipboard

Keep phantom running?

Open juekr opened this issue 4 years ago • 7 comments

I have a self-hosted online bedrock server and run phantom on a raspberry pi in my local network to use it for playing with my Xbox One. Everything usually works fine for several hours ... but: The process disappears from time to time, kicking me off the server. Is there some way to run phantom as a service with automatic restart?

juekr avatar Apr 28 '20 12:04 juekr

I run mine on pi4 and did it through services, but it was created via webmin admin console. I'll take a look how this is done via the console.

counterfitninja avatar Apr 28 '20 12:04 counterfitninja

Thanks. I've already tried starting it from a bash script in a loop and sending it to the background (via "&") but with no luck.

juekr avatar Apr 28 '20 17:04 juekr

did you try something like `@echo OFF

cls

cd /d %~dp0

:lo

phantom.exe -server "192.168.1.1:19132"

goto lo

exit /b 0`

yet

blubbll avatar Apr 30 '20 17:04 blubbll

I have it running on a raspi with Debian (Buster).

juekr avatar Apr 30 '20 18:04 juekr

I have it running on a raspi with Debian (Buster).

try running a shell script in a tmux window. goto loops on exit, similar to the batch one here

thats how i did it on linux if i wanted bash-loops xD

blubbll avatar Apr 30 '20 18:04 blubbll

Thought I had posted this.. I created a service but I run webmin to admin and did it through that.

This is very similar in output

https://domoticproject.com/creating-raspberry-pi-service/

counterfitninja avatar May 01 '20 07:05 counterfitninja

Thanks, that is really helpful! Although I might have found another solution that works for me => https://github.com/valknight/MCBedrockDNSGuide/blob/master/README.md

juekr avatar May 01 '20 08:05 juekr