radicle-heartwood-lfs/systemd/radicle-node.service

37 lines
1.0 KiB
SYSTEMD

# 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.
#
# For users wishing to run a configured version of the service, copy this
# service file into the user's systemd directory, and edit appropriately.
#
# For example:
#
# mkdir -p $HOME/.config/systemd/user/
# cp radicle-node.service $HOME/.config/systemd/user/radicle-node.service
#
# You will have to set the RAD_PASSPHRASE environment variable to the
# passphrase supplied during `rad auth`, for the node to start, eg.
#
# [Service]
# Environment=RAD_PASSPHRASE=<passphrase>
#
# Also ensure RAD_HOME is set appropriately.
#
[Unit]
After=syslog.target network.target
Description=Radicle Node
[Service]
ExecStart=%h/.radicle/bin/radicle-node --listen 0.0.0.0:8776
Environment=RAD_HOME=%h/.radicle
KillMode=process
Restart=always
RestartSec=1
[Install]
WantedBy=default.target