n0-computer / iroh

A toolkit for building distributed applications
https://iroh.computer
Apache License 2.0
2.56k stars 161 forks source link

Debian installation scripts - may they be useful for Iroh? #2548

Open twdragon opened 3 months ago

twdragon commented 3 months ago

After working on the Debian package generator for IPFS Kubo, I wonder if it would also be useful for Iroh CLI run as systemd service on Debian/Ubuntu. Could you please share your opinion and thoughts about it?

dignifiedquire commented 3 months ago

I would love to see this, anything that makes it easier for folks to run iroh is appreciated.

twdragon commented 3 months ago

OK then. I cannot make this a priority task, but I will try at least. @dignifiedquire if you know, could you please point me to the ready systemd unit script for Iroh?

dignifiedquire commented 3 months ago

There is no ready made systemd script currently. cc @Arqu

Arqu commented 3 months ago

We have some things for most other services but not for the iroh bin specifically. I'm pasting in a toy service I used locally for testing out the relays if that helps any, but it's obvious this needs some love.

[Unit]
Description=iroh relay service
After=network.target

[Service]
Type=simple
User=iroh
Group=iroh
LimitNOFILE=65535
LimitCORE=infinity
Environment="RUST_LOG=debug"

Restart=on-failure
RestartSec=10

ExecStart=/usr/local/bin/iroh-relay --config-path /var/lib/iroh/relay.cfg.toml

SyslogIdentifier=iroh-relay

[Install]
WantedBy=multi-user.target