Files
heartwood/systemd/user/radicle-node.service
T
srestegosaurio 25decf1617 systemd: Add example service hardening
Include some trivial sandboxing options in the provided service files
as an example and lead users to `systemd-analyze security`.

While being a trivial change and far from a secure service it is an
improvement and may push downstream packagers and/or users to add even
a bit of sandboxing.

Signed-off-by: srestegosaurio <lcdt@disroot.org>
2025-08-26 20:25:08 +02:00

28 lines
784 B
Desktop File

# 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
# Basic hardening options. For more please refer to `systemd-analyze security`.
PrivateTmp=true
ProtectHome=true
MemoryDenyWriteExecute=true
[Install]
WantedBy=default.target