[Bug 258753] www/nginx-prometheus-exporter: redirect stdout/stderr to syslog

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 28 Sep 2021 04:28:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258753

            Bug ID: 258753
           Summary: www/nginx-prometheus-exporter: redirect stdout/stderr
                    to syslog
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: freebsd.org@neant.ro
                CC: arcade@b1t.name
             Flags: maintainer-feedback?(arcade@b1t.name)
                CC: arcade@b1t.name

stdout and stderr should be logged to syslog, otherwise if the service is
started by other processes, like SaltStack, it might hang. Here's a patch:


@@ -42,7 +42,8 @@
 pidfile=/var/run/nginx_prometheus_exporter.pid
 command="/usr/sbin/daemon"
 procname="/usr/local/bin/nginx-prometheus-exporter"
-command_args="-p ${pidfile} /usr/bin/env ${procname} \
+command_args="-f -T ${name} -p ${pidfile} \
+    /usr/bin/env ${procname} \
     --nginx.scrape-uri=${nginx_prometheus_exporter_scrape_uri} \
     --web.listen-address=${nginx_prometheus_exporter_listen_address} \
     ${nginx_prometheus_exporter_args}"

-- 
You are receiving this mail because:
You are the assignee for the bug.