fix: don't fail to stop when process isn't running
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2022-12-31 18:16:30 -03:00
parent 594b9039c8
commit 00b59e7242

View file

@ -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} daemonize -c /tmp -p $pid -l $pid -u knot /usr/local/bin/syslogize /usr/bin/knot-prometheus-exporter ${STATS}
;; ;;
stop) stop)
test -f $pid && cat $pid | xargs -r kill test -f $pid && cat $pid | xargs -r kill || true
rm -f $pid rm -f $pid
;; ;;
esac esac