Skip to content

Modify socket path to conform to FHS #257

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

Merged
merged 3 commits into from
Oct 2, 2020

Conversation

hug-dev
Copy link
Member

@hug-dev hug-dev commented Sep 23, 2020

Unix domain sockets should be in /run/.
See #250 for reference.

Unix domain sockets should be in /run/.

Signed-off-by: Hugues de Valon <[email protected]>
@hug-dev hug-dev added the invalid This doesn't seem right label Sep 23, 2020
@hug-dev hug-dev self-assigned this Sep 23, 2020
@ionut-arm
Copy link
Member

Do we need to modify and upstream the client first?

@hug-dev
Copy link
Member Author

hug-dev commented Sep 23, 2020

Yes probably, for the CI to pass. I have created a PR on the client here. I also realised I forgot pushing updates to the systemd unit file, I am doing that now.

@hug-dev hug-dev force-pushed the new-socket-path branch 2 times, most recently from ccd293e to d8927d4 Compare September 25, 2020 16:02
@hug-dev hug-dev marked this pull request as ready for review September 25, 2020 16:21
@hug-dev hug-dev requested a review from ionut-arm September 25, 2020 16:21
Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Hope it won't come to haunt us 🤞

@@ -17,6 +17,7 @@

# Log level to be applied across the service. Can be overwritten for certain modules which have the same
# configuration key. Possible values: "debug", "info", "warn", "error", "trace"
# WARNING: This option will not be updated if the configuration is reloaded with a different one.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!


let listener = UnixListener::bind(SOCKET_PATH)?;
// Will fail if a file already exists at the path.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then why don't we just panic instead of error on line 54?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is in the same line of ideas of trying to avoid as many panic as possible 😃

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, I guess we can let it wind down, though I wouldn't mind panics for the issues with which the service cannot continue worrking

Copy link
Contributor

@puiterwijk puiterwijk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks!

@hug-dev hug-dev merged commit 3c5b6c5 into parallaxsecond:master Oct 2, 2020
@hug-dev hug-dev deleted the new-socket-path branch October 2, 2020 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants