diff --git a/prometheusd.sh b/prometheusd.sh index 3be2e8d..9194742 100755 --- a/prometheusd.sh +++ b/prometheusd.sh @@ -10,7 +10,7 @@ case $1 in 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 + test -f $pid && cat $pid | xargs -r kill || true rm -f $pid ;; esac