Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmux prevents log output from appearing in journalctl #124

Open
rhoriguchi opened this issue Jan 16, 2025 · 1 comment
Open

tmux prevents log output from appearing in journalctl #124

rhoriguchi opened this issue Jan 16, 2025 · 1 comment

Comments

@rhoriguchi
Copy link

If you have services.minecraft-servers.managementSystem.tmux.enable = true you won't see any log output with journalctl since tmux catches all output. I'm not sure how you can prevent that, I couldn't find a solution myself.

> journalctl -u minecraft-server-world.service
....
-- Boot c3c64eb61fe446c88268fa0d25210f8d --
Jan 16 13:33:21 HOSTNAME systemd[1]: Starting Minecraft Server world...
Jan 16 13:33:22 HOSTNAME systemd[1]: Started Minecraft Server world.
@Infinidoge
Copy link
Owner

There is no solution because of the design of tmux. This is why the systemd-socket management system exists, as it allows log output properly. If you wanted to resolve it, you would need a... questionable setup to tee it into systemd.

I've been wanting to find a better solution that would handle this properly, but none of the solutions I found would work. tmux is horrible for this application, but it's the best solution I have currently for the "I need to access the console directly" problemset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants