Merge pull request #755 from gavrik/patch-1

send stdout/stderr to syslog
This commit is contained in:
Joe Adams 2023-02-12 15:15:20 -05:00 committed by GitHub
commit 44aab362f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,8 @@ postgres_exporter_data_source_name="postgresql://${postgres_exporter_pg_user}:${
pidfile=/var/run/postgres_exporter.pid
command="/usr/sbin/daemon"
procname="/usr/local/bin/postgres_exporter"
command_args="-p ${pidfile} /usr/bin/env DATA_SOURCE_NAME="${postgres_exporter_data_source_name}" ${procname} \
command_args="-f -p ${pidfile} -T ${name} \
/usr/bin/env DATA_SOURCE_NAME="${postgres_exporter_data_source_name}" ${procname} \
--web.listen-address=${postgres_exporter_listen_address} \
${postgres_exporter_args}"