mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-02 01:40:28 +08:00
Support users with systemd integration by providing a systemd service file. The file includes basic instructions for how to adapt to the users context. There are two scenarios it would be run in, as a system service, or as a user service. The scenario as a user service is problematic. `radicle-node` relies on ssh-agent or a clear text RAD_PASSPHRASE.
28 lines
795 B
Desktop File
28 lines
795 B
Desktop File
# 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.
|
|
#
|
|
# mkdir -p $HOME/.local/share/systemd/user/
|
|
# cp radicle-node.service $HOME/.local/share/systemd/user/radicle-node.service
|
|
#
|
|
# You will have to set the RAD_PASSPHRASE for the node to start.
|
|
#
|
|
# [Service]
|
|
# Environment="RAD_PASSPHRASE=[passphrase]"
|
|
|
|
[Unit]
|
|
After=syslog.target network.target
|
|
Description=Radicle Node
|
|
|
|
[Service]
|
|
ExecStart=%h/.radicle/bin/radicle-node
|
|
KillMode=process
|
|
Restart=always
|
|
RestartSec=1
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|