Update systemd page: change metrics default and add note (#2204)

* change default and add note on metrics to systemd page

* add link to metrics guide from systemd page
This commit is contained in:
Sacha Saint-Leger 2020-12-21 17:59:20 +01:00 committed by GitHub
parent a1ba188de3
commit be74df70e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@ Systemd is used in order to have a command or program run when your device boots
### 1. Create a systemd service
> ⚠️ The HTTP server used for obtaining metrics is considered insecure. If you wish to run the service with metrics enabled, you'll need to compile the beacon node with the insecure flag enabled — `make NIMFLAGS="-d:insecure" nimbus_beacon_node` — and replace `--metrics:off` with `--metrics:on` in the service file below. See [here](./metrics-pretty-pictures.md) for more on metrics.
Create a `systemd` service unit file -- `nbc.service` -- and save it in `/etc/systemd/system/`.
```txt
@ -22,7 +24,7 @@ ExecStart=<BASE-DIRECTORY>/build/nimbus_beacon_node \
--data-dir=build/data/shared_pyrmont_0 \
--web3-url=<WEB3-URL> \
--rpc:on \
--metrics:on
--metrics:off
User=<USERNAME>
Group=<USERNAME>
Restart=always