Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhancements to the systemd unit file
This uses now the same options which are used when starting wesnothd from within the wesnoth UI. Systemd sandboxing has been added as well as an documentation entry. The socket file seems to be not removed in most cases, thus it gets deleted afterwards.
- Loading branch information
b5ec7b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wildly guessing since I don‘t know systemd syntax but are you sure AF_UNIX is necessary? I don‘t think we use unix sockets anywhere.
b5ec7b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On startup as a mere mortal, I see
But, if, pretending to be a complete idiot, I ignore all reasonable precautions and do this, it works:
And when I look I see:
So, if we throw caution to the wind, we can use a named socket. But that's not an AF_UNIX port.
And we're only listening on an AF_INET (IPv4) port.
So, nether AF_UNIX nor AF_INET6 should be listed as we only use AF_INET.
The lack of AF_INET6 should be noted as an Issue.
b5ec7b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, not sure if we still don‘t support IPv6 or we just don‘t use it. But indeed that is more a missing feature.