Note: Still trying to navigate communities here on Lemmy to replace those from Reddit. If there is a better place such a question, I would welcome the suggestion.
I'm running a Synology NAS, which uses some flavor of Linux distribution. From there, among everything else running, I have a docker container hosting a Minecraft Bedrock Server. The MCBE server is great for fun, but not so great for resource usage. To handle this, most folks setup something to schedule the server to restart.
Within Synology, there is a task scheduler where I can run a user-defined script to restart the whole container:
docker restart mcbe-world
This works, but it's a dirty reboot though. I worried about corrupting the world (which I do regularly backup). From within the Minecraft server terminal, the /stop
command will gracefully shut it down.
I can't update the container with another application, like screen, because each MCBE update means replacing the entire container (and so destroying the changes). I am looking to somehow redirect a command to the server if possible.
Using docker exec -it mcbe-world
, I can execute what I want within the container.
The person here said, one can "inject commands by running the command as the appropriate account and redirecting it into the server" and they gave the example sudo su -s /bin/bash -c "echo say foobar > /run/service@name"
Unfortunately, this isn't so clear and straight forward to me.
Would anyone here be able to articulate this more clearly for me or have an idea as to how I might issue that /stop command from the Synology scheduled script BEFORE restarting the container?
Thanks!
UPDATE: Solution here: https://beehaw.org/comment/1088961
https://www.theverge.com/2023/5/19/23729642/disney-plus-hulu-remove-pull-shows-willow-streaming-bob-iger
Including Willow, which only finished airing in January.
https://apnews.com/article/climate-change-youth-montana-trial-c7fdc1d8759f55f60346b31c73397db0
A Montana judge has sided with young environmental activists who said state agencies were violating their constitutional right to a clean and healthful environment by permitting fossil fuel development without considering its effect on the climate.
https://apnews.com/article/russia-ukraine-drones-black-sea-407a02ccfb2b1951c5afe9ec2269eed8
Ukrainian sea drones have attacked a major Russian port on the Black Sea, damaging a naval ship. That's according to a Ukrainian official who spoke on condition of anonymity.
https://www.nytimes.com/2023/07/31/climate/coral-reefs-heat-florida-ocean-temperatures.html
Teams dedicated to ocean restoration are urgently moving samples to tanks on land as a marine heat wave devastates entire reefs.
https://apnews.com/article/climate-beer-solar-panels-hops-germany-ee3d00a1877837eb85053335e3b68a00
A farm in Bavaria is covering its hops with solar panels, providing electricity to 250 households and shading the plants from the increasingly scorching summer heat in the process.
https://apnews.com/article/climate-beer-solar-panels-hops-germany-ee3d00a1877837eb85053335e3b68a00
A farm in Bavaria is covering its hops with solar panels, providing electricity to 250 households and shading the plants from the increasingly scorching summer heat in the process.
I have been using various filters like "reddit", "threads", and "titan". My goodness, it transforms the Lemmy experience!
And the ability to hide posts. Thank you thank you thank you thank you!
Throw in Lemmy's community blocking...
I'm so glad to be able to create and prune within Connect. 💜🙏
https://www.accuweather.com/en/space-news/99-of-humans-are-about-to-experience-sunlight-at-the-same-time/1553746
https://www.cnn.com/2023/06/16/world/activist-fake-letter-climate-new-zealand-intl/
A climate activist in New Zealand faces 10 years in jail after a court found her guilty of forgery for sending a fake letter to the speakers at an oil industry conference, telling them it had been postponed due to the climate crisis.
@GlassHalfHopeful
@beehaw.org