Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
Move unit files to `systemd` directory
Alexis Sellier committed 2 years ago
commit e33661738c9aeb689f691e84fbf15387fe334238
parent 33870572d4e0df488839066b513fd26947b8d234
5 files changed +74 -64
modified README.md
@@ -43,6 +43,16 @@ Or directly from our seed node:
    cargo install --force --locked --git https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git \
        radicle-cli radicle-node radicle-remote-helper

+
## Running
+

+
*Systemd* unit files are provided for the node and HTTP daemon under the
+
`/systemd` folder. They can be used as a starting point for further
+
customization.
+

+
Additionally, a `Dockerfile` is included under both crates.
+

+
For running in debug mode, see [HACKING.md](HACKING.md).
+

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) and [HACKING.md](HACKING.md) for an
deleted radicle-httpd/radicle-httpd.service
@@ -1,28 +0,0 @@
-
# 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.
-
#
-
# 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
-
#
-
[Unit]
-
After=syslog.target network.target
-
Description=Radicle HTTPd
-

-
[Service]
-
ExecStart=%h/.radicle/bin/radicle-httpd
-
Environment=RAD_HOME=%h/.radicle
-
KillMode=process
-
Restart=always
-
RestartSec=1
-

-
[Install]
-
WantedBy=default.target
deleted radicle-node/radicle-node.service
@@ -1,36 +0,0 @@
-
# 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
added systemd/radicle-httpd.service
@@ -0,0 +1,28 @@
+
# 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.
+
#
+
# 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
+
#
+
[Unit]
+
After=syslog.target network.target
+
Description=Radicle HTTPd
+

+
[Service]
+
ExecStart=%h/.radicle/bin/radicle-httpd
+
Environment=RAD_HOME=%h/.radicle
+
KillMode=process
+
Restart=always
+
RestartSec=1
+

+
[Install]
+
WantedBy=default.target
added systemd/radicle-node.service
@@ -0,0 +1,36 @@
+
# 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