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