diff --git a/prometheusd.sh b/prometheusd.sh index 1db6f03..47712fc 100755 --- a/prometheusd.sh +++ b/prometheusd.sh @@ -6,8 +6,7 @@ STATS=${STATS:-/tmp/stats.yaml} case $1 in start) rm -f /tmp/prometheus.pid - chmod 644 ${STATS} - daemonize -c /tmp -p /tmp/prometheus.pid -l /tmp/prometheus.pid -u nobody /usr/bin/knot-prometheus-exporter ${STATS} + daemonize -c /tmp -p /tmp/prometheus.pid -l /tmp/prometheus.pid -u knot /usr/bin/knot-prometheus-exporter ${STATS} ;; stop) cat /tmp/prometheus.pid | xargs -r kill ;; esac