Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
chore(node): provide user service for radicle-node
Merged did:key:z6MksSTA...bMHU opened 11 months ago

As discussed in zulip, replace the systemd system service with a user service. This should usually go into /usr/lib/systemd/user/ for packages and /etc/systemd/user/ as a user.

1 file changed +23 -0 6f25d73d 9dae540c
added systemd/user/radicle-node.service
@@ -0,0 +1,23 @@
+
# When running radicle-node on a server, it should be run as a separate user.
+
# If your Radicle key is passphrase-protected, you will have to set the
+
# `RAD_PASSPHRASE` environment variable to the passphrase supplied during
+
# `rad auth`.
+
# Use `systemctl --user edit radicle-node.service` to add
+
#
+
#   [Service]
+
#   Environment=RAD_PASSPHRASE=snickerdoodle
+

+
[Unit]
+
Description=Radicle Node
+
After=network.target network-online.target
+
Requires=network-online.target
+

+
[Service]
+
ExecStart=/usr/bin/radicle-node --listen 0.0.0.0:8776 --force
+
Environment=RUST_LOG=info
+
KillMode=process
+
Restart=always
+
RestartSec=3
+

+
[Install]
+
WantedBy=default.target