Index: Makefile =================================================================== --- Makefile (revision 530976) +++ Makefile (working copy) @@ -2,7 +2,7 @@ PORTNAME= ping_exporter DISTVERSION= 0.44 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net-mgmt MAINTAINER= jp+ports@supplntr.io @@ -29,5 +29,11 @@ post-install: ${INSTALL_DATA} ${PATCHDIR}/ping_exporter.yml.sample \ ${STAGEDIR}${PREFIX}/etc/ping_exporter.yml.sample + ${MKDIR} ${STAGEDIR}${DATADIR}/syslog.d \ + ${STAGEDIR}${DATADIR}/newsyslog.conf.d + ${INSTALL_DATA} ${PATCHDIR}/ping_exporter.syslog \ + ${STAGEDIR}${DATADIR}/syslog.d/ping_exporter.conf + ${INSTALL_DATA} ${PATCHDIR}/ping_exporter.newsyslog \ + ${STAGEDIR}${DATADIR}/newsyslog.conf.d/ping_exporter.conf .include Index: files/ping_exporter.in =================================================================== --- files/ping_exporter.in (revision 530976) +++ files/ping_exporter.in (working copy) @@ -21,8 +21,6 @@ # Default is "localhost:9427". # ping_exporter_config (string): Set configuration file of ping_exporter # Default is "%%PREFIX%%/etc/ping_exporter.yml". -# ping_exporter_log_file (string): Set log file of ping_exporter -# Default is "/var/log/ping_exporter.log". . /etc/rc.subr @@ -37,16 +35,16 @@ : ${ping_exporter_group:=nobody} : ${ping_exporter_listen_address=localhost:9427} : ${ping_exporter_config="%%PREFIX%%/etc/ping_exporter.yml"} -: ${ping_exporter_log_file=/var/log/ping_exporter.log} required_files="${ping_exporter_config}" pidfile=/var/run/ping_exporter.pid command=/usr/sbin/daemon procname="%%PREFIX%%/bin/ping_exporter" -command_args="-p ${pidfile} /usr/bin/env ${procname} \ +command_args="-p ${pidfile} -t ${name} -T ${name} -S \ + /usr/bin/env ${procname} \ -web.listen-address ${ping_exporter_listen_address} \ -config.path ${ping_exporter_config} \ - ${ping_exporter_args} >> ${ping_exporter_log_file} 2>&1" + ${ping_exporter_args} 2>&1" start_precmd=ping_exporter_startprecmd Index: files/ping_exporter.newsyslog =================================================================== --- files/ping_exporter.newsyslog (nonexistent) +++ files/ping_exporter.newsyslog (working copy) @@ -0,0 +1,3 @@ +# $FreeBSD$ + +/var/log/ping_exporter.log 644 7 1000 * J Index: files/ping_exporter.syslog =================================================================== --- files/ping_exporter.syslog (nonexistent) +++ files/ping_exporter.syslog (working copy) @@ -0,0 +1,3 @@ +# $FreeBSD$ +!ping_exporter +*.* /var/log/ping_exporter.log Index: files/pkg-message.in =================================================================== --- files/pkg-message.in (nonexistent) +++ files/pkg-message.in (working copy) @@ -0,0 +1,15 @@ +[ +{ type: install + message: <