Go-ipfs: Socket activation via Unix Domain Sockets

Created on 11 Jun 2020  路  5Comments  路  Source: ipfs/go-ipfs

It looks like:

  1. #6675 adds support for socket activation via tcp
  2. #6678 adds support unix domain sockets

But there is no support for socket activation via unix domain sockets. I would like this. Is this something people would be interested in adding?

kinenhancement

Most helpful comment

You don't need to specify anything in your config unless you want to. If you _do_ specify the socket in your config, go-ipfs will listen on that socket even when the systemd socket unit is disabled but that's not necessary.

All 5 comments

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment.
Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

  • "Priority" labels will show how urgent this is for the team.
  • "Status" labels will show if this is ready to be worked on, blocked, or in progress.
  • "Need" labels will indicate if additional input or analysis is required.

Finally, remember to use https://discuss.ipfs.io if you just need general support.

This already works. Just add ListenStream=/path/to/my.socket to your systemd socket unit.

@Stebalien awesome! Do I need to specify the path anywhere else (e.g. with ipfs config), is the new line in socket unit sufficient?

You don't need to specify anything in your config unless you want to. If you _do_ specify the socket in your config, go-ipfs will listen on that socket even when the systemd socket unit is disabled but that's not necessary.

Alright, thanks so much!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daviddias picture daviddias  路  3Comments

jonchoi picture jonchoi  路  3Comments

funkyfuture picture funkyfuture  路  3Comments

amiyatulu picture amiyatulu  路  3Comments

ArcticLampyrid picture ArcticLampyrid  路  3Comments