Comments (6)
Interesting, I will try that later. That could get rid of server_do(). The jank that is server_read() would live on albeit scraping journalctl instead of tmux. I wonder if journalctl can automatically parse the join/leave messages and push to the IRC bot and any future web hooks I've considered adding (likely just a line of wget). That would make the jank that is MCBElog.sh unneeded with up to 1 minute less delay as it would read on push instead of scraping once a minute. Only possible downside is while tmux confuses people having to use journalctl to see the output of a command echo'd to the pipe is also going to confuse some users.
Edit: I'm definitely putting the instance name in the description later. That was an oversight of mine, thank you.
from mcscripts.
I addressed the description lacking instance name, I'll play with a separate branch trying systemd sockets later this weekend. Gotta apply for classes, read backup logs, and other stuff first.
from mcscripts.
Branch werm_socket has some progress on scraping logs the same way I use tmux capture-pane
. I'll work on it more tonight probably.
Edit: Most probable result of this is I drop tmux from the server and drop support for tmux sessions entirely. For now the IRC bot will stay in a tmux session.
from mcscripts.
I'm having a lot of trouble getting input logged the way tmux did. I just want standard in to be logged in the journal but I haven't found anything in systemd or Bash for that.
Edit: I'm gonna have to hold off on this, just spent a few hours and made zero progress. Got other things that need to be done before tomorrow morning, unless someone finds out how to take standard in and put that in the journal or in standard output which does go to the journal.
Edit 2: ExecStart=/bin/bash -c 'tee | LD_LIBRARY_PATH=. ./bedrock_server'
does not output the input in journalctl.
Edit 3: Alt plan could be the reason I need stdin in logs is I scrape journalctl and use what I put in stdin as a cutoff point for parsing it. I could use journalctl timestamps and parse those and compare dates to find such. Honestly might be a better system but would need a big rewrite to the backup scripts.
Edit 4: I fixed the backup script with a major refactor, testing and an update should be out soon.
from mcscripts.
Latest 2 commits fix this issue. My services and scripts now use systemd sockets and journalctl. I may readd tmux compatibility later but that is irrelevant to this issue, the services will continue to use systemd sockets.
from mcscripts.
Wow that was fast, sorry I had bunch of github notifications to read through. This is cool.
# Thanks for sockets Lukáš Zapletal
This is not really necessary, it only pollutes such a nice and clean (tmux-free) config file now :-)
I am planning an article for opensource.com about SELinux policy and this repo will be totally featured as the recommended way! Kudos.
from mcscripts.
Related Issues (20)
- Dependency failed for Automatically remove Minecraft Bedrock Edition server world backups more than 2-weeks-old @ MCBE. HOT 2
- Autoupdate failed HOT 2
- Need to use dos2unix on server.properties from Windows server HOT 5
- Add verbose flag HOT 1
- After updating, discord webhook prints xuid's rather than usernames HOT 3
- mcbe-getzip service fails to start with dependency failure HOT 3
- Incorrect permissions on bedrock_server file after most recent BDS update HOT 1
- auto update for minecraft on ubuntu desktop version HOT 12
- move_servers.sh deleted bedrock server and didn't move it when backup_dir already contained bedrock directory HOT 5
- mcbe-rmbackup tries to delete files in wrong directory HOT 1
- mcbe_getzip: wget read error in headers HOT 6
- No Response from https://www.minecraft.net HOT 23
- Mention Pugmatt's BedrockConnect as a Nintendo Switch workaround HOT 3
- Autoupdate script updates server to incompatible version HOT 3
- Issue with EULA accepting HOT 2
- Documentation? HOT 11
- Missing `g` termination in sed command
- Multiple Bedrock Servers HOT 2
- Backup fails without helpful error message if server.properties contains CRLF line terminations HOT 1
- Screen support? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mcscripts.