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

This commit is contained in:
f 2022-12-31 18:16:30 -03:00
parent 594b9039c8
commit 00b59e7242
1 changed files with 1 additions and 1 deletions

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}
;;
stop)
test -f $pid && cat $pid | xargs -r kill
test -f $pid && cat $pid | xargs -r kill || true
rm -f $pid
;;
esac