different user for starting the process
This commit is contained in:
parent
cce16b3e98
commit
6e060e5ab0
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user