Files
heartwood/systemd/radicle-httpd.service
T
cloudhead 292ff01923 systemd: Update for system install
While these unit files were good for a user install, they were not
appropriate for running *system* services. Since most users nowadays
use `rad node` to manage their node, it makes more sense for the unit
files to be oriented towards server use.
2024-02-08 12:34:26 +01:00

24 lines
654 B
Desktop File

# Example systemd unit file for `radicle-httpd`.
#
# When running radicle-httpd 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.
#
[Unit]
Description=Radicle HTTP Daemon
After=network.target network-online.target
Requires=network-online.target
[Service]
User=seed
Group=seed
ExecStart=/usr/local/bin/radicle-httpd --listen 127.0.0.1:8080
Environment=RAD_HOME=/home/seed/.radicle RUST_BACKTRACE=1 RUST_LOG=info
KillMode=process
Restart=always
RestartSec=1
[Install]
WantedBy=multi-user.target