fix: don't fail to stop when process isn't running
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
594b9039c8
commit
00b59e7242
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue