I am running fresh install of fedora 28 and I am trying to set up a minecraft server for
my kids following the systemd service file outlined here
https://minecraft.gamepedia.com/Tutorials/Server_startup_script then command being called
is "ExecStart=/bin/sh -c '/usr/bin/screen -DmS mc-server /usr/bin/java ..".
I have written service files in the past so I have a basic understanding of systemd,
However I have never tried to use screen in systemd. When I try to start the service I get
an error "Directory '/run/screen' must have mode 777." to see if it
worked I ran chmod and the service starts fine but then when I run "screen -ls"
I get "Directory '/run/screen' must have mode 775." which is what
/run/screen was set to originally.
What is causing the need for 777 from systemd? and how would I fix it? I really don't
like the idea of having anything set to 777 and I have tried to find a solution online.
There are many references to strace causing issues but that is not installed. And other
articles said to check permissions of /usr/bin/screen so here is what I have
-rwxr-sr-x. 1 root screen 501248 Feb 9 14:10 /usr/bin/screen
drwxrwxrwx. 3 root screen 60 Jun 3 14:31 /run/screen
.