jbertram commented on code in PR #4801:
URL: https://github.com/apache/activemq-artemis/pull/4801#discussion_r1476733634
##########
artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis-service:
##########
@@ -61,7 +61,7 @@ status() {
pid=`cat "${PID_FILE}"`
# check to see if it's gone...
ps -p ${pid} > /dev/null
- if [ $? -eq 0 ] ; then
+ if [ $? -eq 0 ] && [ `pwdx ${pid} | awk '{print $2}'` ==
"$ARTEMIS_INSTANCE" ]; then
Review Comment:
I couldn't get this to work in my testing. I kept getting this:
```
./artemis-service: 64: [: /home/jbertram: unexpected operator
```
However, this worked:
```
if [ $? -eq 0 ] && [ "`pwdx ${pid} | awk '{print $2}'`" =
"$ARTEMIS_INSTANCE" ] ; then
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]