Skip to content

Please include a systemd script #6323

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

Closed
cbluth opened this issue May 12, 2019 · 9 comments
Closed

Please include a systemd script #6323

cbluth opened this issue May 12, 2019 · 9 comments
Labels
help wanted Seeking public contribution on this issue topic/docs-ipfs Topic docs-ipfs

Comments

@cbluth
Copy link

cbluth commented May 12, 2019

Type:

  • "doc": If it's related to missing/incorrect documentation.

Description:

Hello,

I am looking for a systemd script to run this as a service for multiple users.

@magik6k
Copy link
Member

magik6k commented May 14, 2019

There were a few systemd related PRs in the past: #5583 #1864

@magik6k magik6k added the help wanted Seeking public contribution on this issue label May 14, 2019
@NatoBoram
Copy link
Contributor

@koalalorenzo
Copy link
Member

Some points that are related to this
go-ipfs looks like it is not really built as a service for all the users. Once you run ipfs as a systemd service all the users that wants to use IPFS are forced to:

  1. Use the API: this should be the default behaviour but requires IPFS_PATH to be set anyway or --api
  2. Set up IPFS_PATH and have the permissions to run commands

Systemd does support user services, but that doesn't help much if it is a multi user system where all the users wants IPFS running even if they are not logged in (please correct me if I am wrong!).

I hope to see ipfs growing into a more stable daemon that can be run on systemd!

@Stebalien
Copy link
Member

You can actually configure the ipfs client to use a remote server by running:

> mkdir -p ~/.ipfs
> echo '/dns4/localhost/tcp/5001' > ~/.ipfs/api

We should probably have a nice command for this.

@koalalorenzo
Copy link
Member

koalalorenzo commented May 22, 2019

You can actually configure the ipfs client to use a remote server by running:

> mkdir -p ~/.ipfs
> echo '/dns4/localhost/tcp/5001' > ~/.ipfs/api

We should probably have a nice command for this.

My point is that it should not be required to do that if it was a service (even with or without systemd running it). Hashicorp's products are a good example.

@Stebalien
Copy link
Member

Ah, yeah, I agree (but we need multitenent support for that to really happen).

@cbluth
Copy link
Author

cbluth commented May 28, 2019

finally, some info on how to run ipfs for multiple users!

@koalalorenzo
Copy link
Member

koalalorenzo commented May 28, 2019

We are maintaining (auto-generated) also a apt repository with deb packages (works both for ubuntu and deb) that includes the service for multiple user:
https://blog.siderus.io/how-to-get-ipfs-on-ubuntu-debian-linux-d7920c1a42b7

The builds are automated and we are using it on most of the gateways. ipfs-gateway is the name of the package for the global service but it requires are repo in /var/ipfs (just install the package and it is set up out of the box). That is a downside as I have explained few message before, hopefully go-ipfs will get better! 👍 🚀 💪

@daviddias daviddias added docs topic/docs-ipfs Topic docs-ipfs and removed docs labels Oct 1, 2019
@Stebalien
Copy link
Member

Done. See misc/systemd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Seeking public contribution on this issue topic/docs-ipfs Topic docs-ipfs
Projects
None yet
Development

No branches or pull requests

6 participants