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

@ -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