[-] GlassHalfHopeful@beehaw.org 2 points 1 year ago* (last edited 1 year ago)

YEEEESSS!!!! THIS!!! Thank you! I've been able to hobble together a script now that I have a Synology automated task calling early each morning after world backups are complete. I'm so very grateful to you all. I've learned a lot. A proper "stop" is being issues now which reduces the chance of world corruption which would make my family very very grumpy.

Here's the script just in case someone finds themselves in a similar situation as me. This is not my wheelhouse and it's not pretty. I know it can be better, but I've spent too much time on this as it is and need to go fix a washing machine now. Ugh...


#!/bin/bash

# Define the countdown duration in seconds
countdown_duration=20

# Function to send a message to the Docker container
send_cmd() {
  cmd="$1"
  sudo sh -c "echo '$cmd' | socat EXEC:'docker attach mcbe-world',pty STDIN"
}

# Announce
announce_text="Daily server restart commencing in $countdown_duration seconds..."
send_cmd "say $announce_text"

# Perform the countdown
for ((i = $countdown_duration; i >= 1; i--)); do
  #echo "Restaring in $i seconds"
  countdown_text="Restarting in $i seconds"
  send_cmd "say $countdown_text"
  sleep 1
done

# Gracefully shutdown server
#  Note: stopping forces the mcbe container to restart on it's own. 
#  Not sure why that's the case, but it's the end result I want...
send_cmd "stop"

P.S. I really need to figure out how to get the RCON solution working because that would be a more elegant way to handle things.

P.P.S Example run (yes, the timing and spelling were updated after this screenshot ๐Ÿ˜)

[-] GlassHalfHopeful@beehaw.org 1 points 1 year ago

docker exec mcbe-world just gives access to the container so commands can be executed. /stop is a specific command for the MC server running in that container. The process is already running and I am trying to figure out how to issue a command to it... and the other comment in this post referencing "rcon" might be a solution...

[-] GlassHalfHopeful@beehaw.org 2 points 1 year ago

Exactly ๐Ÿ’œ

[-] GlassHalfHopeful@beehaw.org 2 points 1 year ago

This of course presumes that you have a Synology disk station. They come in a variety of different models.

I'm surprised at how much I'm able to serve from my device. I use it for cloud storage, file thinking across devices, photo management and backup across devices, ebook management, running a game server for my family, running an evernote-like service, etc etc.

It's been really good to have full control over all my information and not have to pay ever increasing fees to various companies for various services.

[-] GlassHalfHopeful@beehaw.org 2 points 1 year ago

If you wish. You can set it up to only sync locally (intranet only) or you may expose it via DNS and port forwarding.

[-] GlassHalfHopeful@beehaw.org 2 points 1 year ago

I'm using Synology photos. Auto backup for everyone's phones. Shared common library we move things into for all our photos. I miss some of the ai search capability of Google, but never enough to do anything but self host.

[-] GlassHalfHopeful@beehaw.org 2 points 1 year ago* (last edited 1 year ago)

Hmm. This might be worth trying. And moving them to mow could work. Thank you!

Assuming they are effective, my only concern then is how they might affect other creatures. I understand that it radiates into the ground, but I'm also worried about things above ground. I'm particularly concerned about birds if it can affect them at all. I wouldn't want to deter them.

[-] GlassHalfHopeful@beehaw.org 1 points 1 year ago

Any issues/successes with mole tunneling around the yard? That's my biggest bane.

[-] GlassHalfHopeful@beehaw.org 2 points 1 year ago

Your experience is what i am looking to accomplish. I'd like to transfer everything Evernote to a self-hosted FOSS application I can serve on my Synology NAS. I would access my notes primarily on my phone (Android) and sometimes Windows. AFIAK, Joplin would sync to my Synology NAS where it's hosted... so I'm a little perturbed by the additional used of Syncthing.

Would someone explain the need/desire for Joplin+Syncthing?

1
submitted 1 year ago* (last edited 1 year ago) by GlassHalfHopeful@beehaw.org to c/entertainment@beehaw.org

Binged the first five episodes last weekend and the sixth just now (Prime). It's a crime drama interwoven with comedy.

It's definetly vulgar, often tiresomely so, with one of the characters. Tonight though, I saw a very human side of her that was really tender and lovely... despite the vulgarity. ๐Ÿ˜

On the other hand, Kate Box plays a detective that simply continues to draw me in further with each episode. I want to watch her work. I can feel the reasons why she is who she is. I can see what drives her. I see her brokenness and also what makes her great. I want to know her. I admire her. Tonight, I could truly empathize with her in ways that I haven't been able to with others folks for a long time. I love good story telling like this. ๐Ÿ’œ

Anyway, it's been worth the watch and I look forward to finishing it out.

What do you all think?

1

One of the primary reasons I love Star Trek so much is because of the continued hope it fills me with as I imagine a better future for humanity.

I'm grateful for all those who resist and stand up for justice and equality. For the lives lost. For those fighting each day. While my heart feels so often crushed, I can't help but look forward with hope and longing.

Never forget that humanity has done better. We've done great harm, but have also grown in light of that. We will continue to see change so long as we keep fighting for change.

Such a good episode to watch this evening. I'm a bundle of emotions. ๐Ÿ’œ

#HumanRights #Justice #Equality #LGBTQ #Racism #BLM #WomensRights #Migrants #Refugees #Poverty

[-] GlassHalfHopeful@beehaw.org 2 points 1 year ago

I enjoyed the primary trilogy for the most part. It was a short and not overly complex, which is what I expected out of the young adult classification.

I think a lot of fun could be had with the story, but the writing wasn't strong enough to keep me interested the other books.

I mostly read it out of curiosity to see how it diverged from the television show that I'm about to finish up. I figured my kids may be interested in it also, so I wanted to give it a go.

2
submitted 1 year ago* (last edited 1 year ago) by GlassHalfHopeful@beehaw.org to c/fantasy@lemmy.ml

I'm new to Lemmy and have been searching the federated communities for those which I wanted to subscribe to. For some reason, this community's name renders weird on my instances search as well as the app I'm using (see image).

Is "Fantasy books, stories, &c" correct? And if so, what does "&c" stand for?

view more: โ€น prev next โ€บ

GlassHalfHopeful

joined 1 year ago