send stdout/stderr to syslog

Signed-off-by: Mike <gavrikster@gmail.com>
This commit is contained in:
Mike 2023-02-07 16:55:20 +02:00 committed by GitHub
parent 7259eec41c
commit e5891830e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ postgres_exporter_data_source_name="postgresql://${postgres_exporter_pg_user}:${
pidfile=/var/run/postgres_exporter.pid pidfile=/var/run/postgres_exporter.pid
command="/usr/sbin/daemon" command="/usr/sbin/daemon"
procname="/usr/local/bin/postgres_exporter" 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} \ --web.listen-address=${postgres_exporter_listen_address} \
${postgres_exporter_args}" ${postgres_exporter_args}"