-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Issues with screen and RHEL 8 #25
Comments
As a workaround you could add I'll leave this issue open as a reminder to move from screen to e.g. tmux... |
Thanks, I'll give that a try. I tried to transition it to tmux myself and ended up trashing the VM so much I had to roll back the snapshot. |
For anyone that finds this in the future, after some more research there are actually 2 lines that need to be added to get around the "/run/screen needs 777" error since chmod needs to be run as 'root' : PermissionsStartOnly=true Although the "PermissionsStartOnly" directive has been depreciated so this one should work on RHEL 8 and newer: ExecStartPre=+/bin/sh -c 'chmod 777 /run/screen' the "+" is what allows the command to run at elevated (root) permissions. Thanks again for the module agowa338! |
Actually did not know about that feature. Thanks for the update. |
adding the above ExecStartPre worked but made |
Got that also, seems that screen in RHEL 8 is just total crap since it is no longer supported. After a day or so of trying all the different combinations I just ended up using rcon to perform server functions instead of the screen console. At least that way the service starts on boot or crash. |
I tried to use tmux,but tmux does't recognize minecraft server as a "terminal" |
@jingkaimori Starting with L40 it is wrong. The Also the ordering of your tmux commands looks off, you're first sending keys, but afterwards selecting the pane and window as well as attaching to the session. Maybe you want to invert the ordering? But I'm not that used to tmux syntax, so I'm not sure what you're trying to archive with these commands. Also could you make a merge request once you've it all up and running? |
changed as you said,but it still not work.error is shown below:
so why this error appear? |
That looks like an error with you tmux command. But from what stackoverflow says to that error https://stackoverflow.com/questions/25207909/tmux-open-terminal-failed-not-a-terminal |
@agowa338 I changed the profile and there is no literial error,but the server cannot be attached by tmux,and the stop config can't work.When I tried to attach the tmux,error appeared like this:
new config is in my repo |
I'm trying to use this systemd unit on a RHEL 8 server. It looks like screen is no longer officially supported in RHEL 8. I installed it via yum (through sudo). I get this error when trying to start the server:
directory '/run/screen' must have mode 777
I can chmod /run/screen 777 but it does not survive a reboot.
I know not strictly related to this systemd unit but hoping I am not the only one with this issue or you already have a fix for it. As I am typing this I am wondering if just adding a chmod to the unit that executes before the screen command would work.
The text was updated successfully, but these errors were encountered: