From d007527e9e8405d738dfaaad02046fe31be78d5a Mon Sep 17 00:00:00 2001 From: Tobias Klausmann Date: Tue, 4 Jul 2023 13:37:18 +0200 Subject: [PATCH] init/: Update openrc service file --- init/nfprom.default | 4 +--- init/nfprom.openrc | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/init/nfprom.default b/init/nfprom.default index 7a7a199..ef17761 100644 --- a/init/nfprom.default +++ b/init/nfprom.default @@ -1,4 +1,2 @@ -NFPROM_USER="prometheus" NFPROM_LOG_FILE="/var/log/prometheus/nfprom.log" -NFPROM_ARGS="-ipv6=true -addr='localhost:9912'" -PROMETHEUS_USER=prometheus +NFPROM_ARGS="-jsonfile /var/spool/nfprom/stats.json" diff --git a/init/nfprom.openrc b/init/nfprom.openrc index 95e2c56..9149ade 100644 --- a/init/nfprom.openrc +++ b/init/nfprom.openrc @@ -7,5 +7,5 @@ command=/usr/sbin/nfprom command_args="${NFPROM_ARGS}" command_background="true" -start_stop_daemon_args="-u ${PROMETHEUS_USER} -1 ${NFPROM_LOG_FILE} -2 ${NFPROM_LOG_FILE} -- ${NFPROM_ARGS}" +start_stop_daemon_args="-1 ${NFPROM_LOG_FILE} -2 ${NFPROM_LOG_FILE} -- ${NFPROM_ARGS}"