log to syslog
This commit is contained in:
parent
ccf348f077
commit
47f66a6060
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ pid=/tmp/prometheus.pid
|
|||
case $1 in
|
||||
start)
|
||||
test -f $pid && echo "prometheus-exporter already running"
|
||||
daemonize -c /tmp -p $pid -l $pid -u knot /usr/bin/knot-prometheus-exporter ${STATS}
|
||||
daemonize -c /tmp -p $pid -l $pid -u knot /usr/local/bin/syslogize /usr/bin/knot-prometheus-exporter ${STATS}
|
||||
;;
|
||||
stop)
|
||||
test -f $pid && cat $pid | xargs -r kill
|
||||
|
|
Loading…
Reference in a new issue