From be74df70e0b0e714f4200cd952625ab544c18ce0 Mon Sep 17 00:00:00 2001 From: Sacha Saint-Leger Date: Mon, 21 Dec 2020 17:59:20 +0100 Subject: [PATCH] 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 --- docs/the_nimbus_book/src/beacon-node-systemd.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/the_nimbus_book/src/beacon-node-systemd.md b/docs/the_nimbus_book/src/beacon-node-systemd.md index d756a7e9a..38a94b094 100644 --- a/docs/the_nimbus_book/src/beacon-node-systemd.md +++ b/docs/the_nimbus_book/src/beacon-node-systemd.md @@ -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=/build/nimbus_beacon_node \ --data-dir=build/data/shared_pyrmont_0 \ --web3-url= \ --rpc:on \ - --metrics:on + --metrics:off User= Group= Restart=always