ⓝⓞ🅞🅝🅔

Let go and let entropy. ,🌌

  • 3 Posts
  • 12 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2023

help-circle

  • 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 😁)



  • This looked so promising.

    Via SSH, I can indeed use docker attach and from within I can issue a stop for MC server. Works fine.

    However, the Synology task scheduler via DSM doesn’t seem to be able to similarly attach and then issue the stop command. I get this back via email (for when a scheduled task fails):

    Task Scheduler has completed a scheduled task.

    Task: MC Graceful Restart Start time: Tue, 29 Aug 2023 17:19:41 -0500 Stop time: Tue, 29 Aug 2023 17:19:42 -0500 Current status: 127 (Interrupted) Standard output/error:

    the input device is not a TTY /bin/bash: line 1: stop: command not found






  • Full article

    Both expelled members of ‘Tennessee Three’ win back their state House seats

    By KIMBERLEE KRUESI Updated 9:27 PM EDT, August 3, 2023

    NASHVILLE, Tenn. (AP) — Tennessee Reps. Justin Pearson and Justin Jones, who became Democratic heroes as members of the “Tennessee Three,” reclaimed their legislative seats Thursday after they were expelled for involvement in a gun control protest on the House floor.

    The young Black lawmakers were reinstated by local officials after being booted from the GOP-dominated Statehouse, but only on an interim basis. They advanced Thursday through a special election to fully reclaim their positions. Both faced opponents in districts that heavily favor Democrats.

    Jones, who lives in Nashville, was up against Republican candidate Laura Nelson. Meanwhile, Pearson, from Memphis, faced independent candidate Jeff Johnston.

    “Let’s send a clear message to everyone who thought they could silence the voice of District 86,” Pearson tweeted earlier this month. “You can’t expel a movement!”

    Thursday’s election came as lawmakers are preparing to return to Nashville later this month for a special session to address possibly changing the state’s gun control laws. While Jones and Pearson’s reelection to their old posts won’t make a significant dent to the Republican supermajority inside the Legislature, they are expected to push back heavily against some of their GOP colleagues’ policies.

    Jones and Pearson were elected to the Statehouse last year. Both lawmakers flew relatively under the radar, even as they criticized their Republican colleagues’ policies. It wasn’t until this spring that their political careers received a boost when they joined fellow Democrat Rep. Gloria Johnson in a protest for more gun control on the House floor.

    The demonstration took place just days after a fatal shooting in Nashville at a private Christian school where a shooter killed three children and three adults. As thousands of protesters flooded the Capitol building to demand that the Republican supermajority enact some sort of restrictions on firearms, the three lawmakers approached the front of the House chamber with a bullhorn, and joined the protesters’ chants and cries for action.

    Republican lawmakers quickly declared that their actions violated House rules and moved to expel their three colleagues — an extraordinary move that’s been taken only a handful of times since the Civil War.

    The move briefly left about 140,000 voters in primarily Black districts in Nashville and Memphis with no representation in the Tennessee House.

    Ultimately, Johnson, who is white, narrowly avoided expulsion while Pearson and Jones were booted by the predominantly white GOP caucus.

    House Republican leaders have repeatedly denied that race was a factor in the expulsion hearings. Democrats have disagreed, with Johnson countering that the only reason that she wasn’t expelled was due to her being white.

    The expulsions drew national support for the newly dubbed “Tennessee Three,” especially for Pearson and Jones’ campaign fundraising. The two raised more than $2 million combined through about 70,400 campaign donations from across the country. The amount is well beyond the norm for Tennessee’s Republican legislative leaders and virtually unheard of for two freshman Democrats in a superminority.

    Meanwhile, more than 15 Republican lawmakers had funneled cash to fund campaign efforts of Jones’ Republican opponent, Nelson. Nelson has raised more than $34,000 for the race. Pearson’s opponent, Johnston, raised less than $400 for the contest.







  • I have had a subscription to YNAB (you need a budget) for years now. It’s simple and straight to the point for exactly what we need. It pulls everything from my bank accounts smoothly. My partner understands it and is able to easily use it, which is extremely important.

    I tried Mint and have suggested it in the past as a free alternative to folks who need help budgeting, but it tends to be too complicated for most that I’ve suggested it to. And that’s even after setting it up for them and showing them basic usage.

    I used the GNUCash for a while. As a manual option, it was good for when I was importing everything to Quicken.

    I no longer use quicken or manually import anything.

    There’s not a lot of products that I’ll recommend, but I can say that YNAB is worth every cent.