Skip to content

Commit

Permalink
feat(graceful_shutdown): detect pid via ps if not written into /var/r…
Browse files Browse the repository at this point in the history
…un (#552)

* feat(graceful_shutdown): detect pid via ps if not written into /var/run

* whitespace fix

* further whitespace fix
  • Loading branch information
aaronkvanmeerten authored Sep 19, 2024
1 parent aadff45 commit 1265067
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/graceful_shutdown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ shift "$((OPTIND-1))"
if [ "$pid" = "" ] ;then
if [ -f /var/run/jigasi.pid ]; then
pid=`cat /var/run/jigasi.pid`
else
elif [ -f /var/run/jigasi/jigasi/pid ]; then
pid=`cat /var/run/jigasi/jigasi.pid`
else
pid=`ps aux | grep jigasi.jar | grep -v grep | awk '{print $2}'`
fi
fi

Expand Down

0 comments on commit 1265067

Please sign in to comment.