-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<div align="center"> | ||
<img src="https://raw.githubusercontent.com/piot/relay/main/docs/images/logo.svg" width="192" /> | ||
</div> | ||
|
||
# Conclave Daemon | ||
|
||
## Install | ||
|
||
Extract the release zip containing the `relay` linux executable and `relay.service` [systemd unit file](https://www.freedesktop.org/software/systemd/man/systemd.unit.html). | ||
|
||
```console | ||
sudo chmod a+x relay | ||
sudo cp relay /usr/local/sbin/ | ||
sudo cp relay.service /usr/local/lib/systemd/system/ | ||
``` | ||
|
||
* Make systemd reload all .service-files | ||
|
||
```console | ||
systemctl daemon-reload | ||
``` | ||
|
||
* Check that systemd has read the .service-file: | ||
|
||
```console | ||
systemctl status relay --output cat | ||
``` | ||
|
||
It should report something similar to: | ||
|
||
```console | ||
○ relay.service - UDP Relay | ||
Loaded: loaded (/usr/local/lib/systemd/system/relay.service; disabled; preset: disabled) | ||
Active: inactive (dead) | ||
``` | ||
|
||
* Make sure it is started, if machine is rebooted in the future: | ||
|
||
```console | ||
systemctl enable relay | ||
``` | ||
|
||
* Start it now: | ||
|
||
```console | ||
systemctl start relay | ||
``` | ||
|
||
## Useful commands | ||
|
||
### journalctl | ||
|
||
[journalctl](https://www.freedesktop.org/software/systemd/man/journalctl.html) outputs the log entries stored in the journal. | ||
|
||
```console | ||
journalctl -u relay -b --output cat -f | ||
``` |