jhead / phantom

Use your own Minecraft server with your Xbox or PS4 and play with friends!
MIT License
613 stars 76 forks source link

Keep phantom running? #76

Open juekr opened 4 years ago

juekr commented 4 years ago

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?

counterfitninja commented 4 years ago

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.

juekr commented 4 years ago

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.

blubbll commented 4 years ago

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

juekr commented 4 years ago

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

blubbll commented 4 years ago

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

counterfitninja commented 4 years ago

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/

juekr commented 4 years ago

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