diff --git a/srcpkgs/node_exporter/files/node_exporter/log/run b/srcpkgs/node_exporter/files/node_exporter/log/run new file mode 100755 index 0000000000..719aeb1c26 --- /dev/null +++ b/srcpkgs/node_exporter/files/node_exporter/log/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec vlogger -p daemon.info -t node_exporter diff --git a/srcpkgs/node_exporter/files/node_exporter/run b/srcpkgs/node_exporter/files/node_exporter/run index f7f6d4865e..add864b742 100755 --- a/srcpkgs/node_exporter/files/node_exporter/run +++ b/srcpkgs/node_exporter/files/node_exporter/run @@ -10,4 +10,4 @@ [ -n "${USE_LOCAL_USER}" ] && : ${USER:=_node_exporter} [ -n "${USER}" ] && CHPST_USER="-u ${USER}" -exec chpst $CHPST_USER node_exporter ${RUNIT_COLLECTOR} ${LISTEN_ADDR} ${ARGS} +exec chpst $CHPST_USER node_exporter ${RUNIT_COLLECTOR} ${LISTEN_ADDR} ${ARGS} 2>&1 diff --git a/srcpkgs/node_exporter/template b/srcpkgs/node_exporter/template index 5f2855d6c6..f84cae0d6a 100644 --- a/srcpkgs/node_exporter/template +++ b/srcpkgs/node_exporter/template @@ -1,7 +1,7 @@ # Template file for 'node_exporter' pkgname=node_exporter version=1.1.2 -revision=1 +revision=2 build_style=go go_import_path="github.com/prometheus/node_exporter" go_ldflags="-X ${go_import_path}/version.Version=${version}