View | Details | Raw Unified | Return to bug 226402 | Differences between
and this patch

Collapse All | Expand All

(-)b/sysutils/node_exporter/Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	node_exporter
4
PORTNAME=	node_exporter
5
PORTVERSION=	0.15.2
5
PORTVERSION=	0.16.0
6
DISTVERSIONPREFIX=v
6
DISTVERSIONPREFIX=v
7
CATEGORIES=	sysutils
7
CATEGORIES=	sysutils
8
8
(-)b/sysutils/node_exporter/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1515361500
1
TIMESTAMP = 1529087836
2
SHA256 (prometheus-node_exporter-v0.15.2_GH0.tar.gz) = 940b850376f94580e88b5e99926d92899975d5792d05709cbd9c48dab0a848ad
2
SHA256 (prometheus-node_exporter-v0.16.0_GH0.tar.gz) = 2ed1c1c199e047b1524b49a6662d5969936e81520d6613b8b68cc3effda450cf
3
SIZE (prometheus-node_exporter-v0.15.2_GH0.tar.gz) = 1327204
3
SIZE (prometheus-node_exporter-v0.16.0_GH0.tar.gz) = 1413131
(-)b/sysutils/node_exporter/files/node_exporter.in (-3 / +12 lines)
Lines 38-44 load_rc_config $name Link Here
38
pidfile=/var/run/node_exporter.pid
38
pidfile=/var/run/node_exporter.pid
39
command="/usr/sbin/daemon"
39
command="/usr/sbin/daemon"
40
procname="%%PREFIX%%/bin/node_exporter"
40
procname="%%PREFIX%%/bin/node_exporter"
41
command_args="-p ${pidfile} /usr/bin/env ${procname} \
41
command_args="-p ${pidfile} -T ${name} \
42
    /usr/bin/env ${procname} \
42
    --web.listen-address=${node_exporter_listen_address} \
43
    --web.listen-address=${node_exporter_listen_address} \
43
    --collector.textfile.directory=${node_exporter_textfile_dir} \
44
    --collector.textfile.directory=${node_exporter_textfile_dir} \
44
    ${node_exporter_args}"
45
    ${node_exporter_args}"
Lines 48-57 start_precmd=node_exporter_startprecmd Link Here
48
node_exporter_startprecmd()
49
node_exporter_startprecmd()
49
{
50
{
50
    if [ ! -e ${pidfile} ]; then
51
    if [ ! -e ${pidfile} ]; then
51
        install -o ${node_exporter_user} -g ${node_exporter_group} /dev/null ${pidfile};
52
        install \
53
            -o ${node_exporter_user} \
54
            -g ${node_exporter_group} \
55
            /dev/null ${pidfile};
52
    fi
56
    fi
53
    if [ ! -d ${node_exporter_textfile_dir} ]; then
57
    if [ ! -d ${node_exporter_textfile_dir} ]; then
54
        install -d -o ${node_exporter_user} -g ${node_exporter_group} -m 1755 ${node_exporter_textfile_dir}
58
        install \
59
            -d \
60
            -o ${node_exporter_user} \
61
            -g ${node_exporter_group} \
62
            -m 1755 \
63
            ${node_exporter_textfile_dir}
55
    fi
64
    fi
56
}
65
}
57
66

Return to bug 226402