Switch to systemd

Example for setting environment in a systemd unit file instead of legacy supervisor config.
This commit is contained in:
Daniel Palstra 2020-04-29 07:47:23 +02:00 committed by GitHub
parent a77d1e502c
commit c83450f004
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,8 +27,8 @@ When deploying NetBox in a multiprocess mannor--such as using Gunicorn as recome
to collect metrics from all the worker processes. This can be any arbitrary directory to which the processes have read/write access. This directory is then made available by use of the
`prometheus_multiproc_dir` environment variable.
This can be setup by first creating a shared directory and then adding this line (with the appropriate directory) to the `[program:netbox]` section of the supervisor config file.
This can be setup by first creating a shared directory and then adding this line (with the appropriate directory) to the `[Service]` section of the systemd unit file.
```
environment=prometheus_multiproc_dir=/tmp/prometheus_metrics
Environment=prometheus_multiproc_dir=/tmp/prometheus_metrics
```