different user for starting the process

This commit is contained in:
Ludovic Cartier 2021-10-29 18:26:59 +02:00
parent cce16b3e98
commit 6e060e5ab0
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ prometheus_mongodb_exporter_port: 27017
prometheus_phpfpm_sockets_directory: "/run/php/"
prometheus_postgres_exporter_systemd_user: "postgres"
prometheus_postgres_exporter_host: "/var/run/postgresql/"
prometheus_postgres_exporter_sslmode: "disable"
prometheus_postgres_exporter_user: "postgres"

View File

@ -4,7 +4,7 @@ After=network.target
[Service]
Type=simple
User={{ prometheus_postgres_exporter_user }}
User={{ prometheus_postgres_exporter_systemd_user }}
ExecStart=/usr/local/bin/prometheus-postgres-exporter
EnvironmentFile=/etc/default/prometheus-postgres-exporter