Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
systemd: Add example configuration for DNS-SD
Merged lorenz opened 11 months ago
3 files changed +49 -30 98cf054b e0d18b86
added systemd/dnssd/radicle-node.dnssd
@@ -0,0 +1,19 @@
+
# See <https://www.freedesktop.org/software/systemd/man/latest/systemd.dnssd.html>
+
[Service]
+
# Do not change the service type. This will break discoverability.
+
Type=_radicle-node._tcp
+

+
# Recommendation for "Instance Name"
+
# (see RFC 6763, Sec. 4.1.1, <https://datatracker.ietf.org/doc/html/rfc6763#section-4.1.1>):
+
# Something that identifies your node, maybe it's alias, but could be something else.
+
Name=example
+

+
# If your node is configured to listen on a different port, please change.
+
Port=8776
+

+
# To communicate your node's public key, please set
+
# a TXT record with the contents:
+
#
+
#   "nid=<public key of your node>"
+
#
+
TxtText="nid=z6…"
deleted systemd/radicle-node.service
@@ -1,30 +0,0 @@
-
# Example systemd unit file for `radicle-node`.
-
#
-
# When running radicle-node on a server, it should be run as a separate user.
-
#
-
# Copy this file into /etc/systemd/system and set the User/Group parameters
-
# under [Service] appropriately, as well as the `RAD_HOME` environment variable.
-
#
-
# If your Radicle key is passphrase-protected, you will have to set the
-
# `RAD_PASSPHRASE` environment variable to the passphrase supplied during
-
# `rad auth`, eg.
-
#
-
#   [Service]
-
#   Environment=RAD_PASSPHRASE=snickerdoodle
-
#
-
[Unit]
-
Description=Radicle Node
-
After=network.target network-online.target
-
Requires=network-online.target
-

-
[Service]
-
User=seed
-
Group=seed
-
ExecStart=/usr/local/bin/radicle-node --listen 0.0.0.0:8776 --force
-
Environment=RAD_HOME=/home/seed/.radicle RUST_BACKTRACE=1 RUST_LOG=info
-
KillMode=process
-
Restart=always
-
RestartSec=3
-

-
[Install]
-
WantedBy=multi-user.target
added systemd/system/radicle-node.service
@@ -0,0 +1,30 @@
+
# Example systemd unit file for `radicle-node`.
+
#
+
# When running radicle-node on a server, it should be run as a separate user.
+
#
+
# Copy this file into /etc/systemd/system and set the User/Group parameters
+
# under [Service] appropriately, as well as the `RAD_HOME` environment variable.
+
#
+
# If your Radicle key is passphrase-protected, you will have to set the
+
# `RAD_PASSPHRASE` environment variable to the passphrase supplied during
+
# `rad auth`, eg.
+
#
+
#   [Service]
+
#   Environment=RAD_PASSPHRASE=snickerdoodle
+
#
+
[Unit]
+
Description=Radicle Node
+
After=network.target network-online.target
+
Requires=network-online.target
+

+
[Service]
+
User=seed
+
Group=seed
+
ExecStart=/usr/local/bin/radicle-node --listen 0.0.0.0:8776 --force
+
Environment=RAD_HOME=/home/seed/.radicle RUST_BACKTRACE=1 RUST_LOG=info
+
KillMode=process
+
Restart=always
+
RestartSec=3
+

+
[Install]
+
WantedBy=multi-user.target