node: systemd file
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.
This commit is contained in:
parent
3f389f37ea
commit
6417a71e08
|
|
@ -0,0 +1,27 @@
|
||||||
|
# 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
|
||||||
Loading…
Reference in New Issue