Skip to content

Issue #247 Ensure systemd-journal-gatewayd socket is correct#277

Merged
ikifar2012 merged 4 commits into
home-assistant:mainfrom
p0wertiger:issue-247
Feb 27, 2023
Merged

Issue #247 Ensure systemd-journal-gatewayd socket is correct#277
ikifar2012 merged 4 commits into
home-assistant:mainfrom
p0wertiger:issue-247

Conversation

@p0wertiger
Copy link
Copy Markdown
Contributor

We need to check whether /run/systemd-journal-gatewayd.sock is a socket file. If that's a directory, the socket unit won't start.
Also, socket configuration has been moved to unit override.

Fixes #247

As stated in home-assistant#247 the default action for systemd-journal-gatewayd is to listen on HTTP port while Supervisor needs Unix socket file that's bind mounted in Docker container. This override changes socket location.
As stated in home-assistant#247 with the default setup the path /run/systemd-journal-gatewayd.sock may be a directory, not a file, we have to fix that
Socket location change has been moved to systemd override which is the suggested way of changing original packaged unit behavior
@home-assistant
Copy link
Copy Markdown

Hi @p0wertiger

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@ikifar2012
Copy link
Copy Markdown
Member

@p0wertiger did you see the comment above?

@p0wertiger
Copy link
Copy Markdown
Contributor Author

Yes, hence the tag cla-signed

@ikifar2012
Copy link
Copy Markdown
Member

Yes, hence the tag cla-signed

I also asked in the review comment above if the line 2 ListenStream= is needed, since it is blank

@p0wertiger
Copy link
Copy Markdown
Contributor Author

No, I don't see any review comments other than bot asking to sign CLA.

Empty ListenStream effectively causes to REPLACE the value, means delete the previous one and put in the new one from the next line. That's how systemd overrides work, if you omit the empty statement, it will be added to the original one, the unit would be listening both on network port and local socket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug Report: installation steps don't mention enabling and mapping systemd-journal-gatewayd

2 participants