mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 21:00:30 -04:00
Update to 0.11.0 and log to syslog
PR: 226435 Submitted by: David O'Rourke <dor.bsd@xm0.uk> Approved by: maintainer
This commit is contained in:
parent
0f1da1dc0d
commit
1a8cb1886f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=472549
3 changed files with 6 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= snmp_exporter
|
||||
PORTVERSION= 0.9.0
|
||||
PORTVERSION= 0.11.0
|
||||
DISTVERSIONPREFIX=v
|
||||
CATEGORIES= sysutils
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1519669975
|
||||
SHA256 (prometheus-snmp_exporter-v0.9.0_GH0.tar.gz) = ac508e8cda680cc46638c68fe71a91df012e3274fb99460fd2866637b51591fd
|
||||
SIZE (prometheus-snmp_exporter-v0.9.0_GH0.tar.gz) = 3257207
|
||||
TIMESTAMP = 1529088276
|
||||
SHA256 (prometheus-snmp_exporter-v0.11.0_GH0.tar.gz) = 2cf17de907fef1cf8b352b3adf61dfdc575102b9adae1de5186b2fc88e62faee
|
||||
SIZE (prometheus-snmp_exporter-v0.11.0_GH0.tar.gz) = 3631252
|
||||
|
|
|
@ -40,7 +40,8 @@ load_rc_config $name
|
|||
pidfile=/var/run/snmp_exporter.pid
|
||||
command="/usr/sbin/daemon"
|
||||
procname="%%PREFIX%%/bin/snmp_exporter"
|
||||
command_args="-p ${pidfile} /usr/bin/env ${procname} \
|
||||
command_args="-p ${pidfile} -T ${name} \
|
||||
/usr/bin/env ${procname} \
|
||||
--web.listen-address=${snmp_exporter_listen_address} \
|
||||
--config.file=${snmp_exporter_config_file} \
|
||||
${snmp_exporter_args}"
|
||||
|
@ -52,9 +53,6 @@ snmp_exporter_startprecmd()
|
|||
if [ ! -e ${pidfile} ]; then
|
||||
install -o ${snmp_exporter_user} -g ${snmp_exporter_group} /dev/null ${pidfile};
|
||||
fi
|
||||
if [ ! -d ${snmp_exporter_textfile_dir} ]; then
|
||||
install -d -o ${snmp_exporter_user} -g ${snmp_exporter_group} -m 1755 ${snmp_exporter_textfile_dir}
|
||||
fi
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
|
|
Loading…
Add table
Reference in a new issue