[ https://issues.apache.org/jira/browse/AMQ-8471?focusedWorklogId=721593&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-721593 ]
ASF GitHub Bot logged work on AMQ-8471: --------------------------------------- Author: ASF GitHub Bot Created on: 06/Feb/22 07:14 Start Date: 06/Feb/22 07:14 Worklog Time Spent: 10m Work Description: jbonofre closed pull request #757: URL: https://github.com/apache/activemq/pull/757 -- 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: gitbox-unsubscr...@activemq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 721593) Remaining Estimate: 0h Time Spent: 10m > activemq stop command fails with no or outdated process id > ---------------------------------------------------------- > > Key: AMQ-8471 > URL: https://issues.apache.org/jira/browse/AMQ-8471 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.16.2 > Reporter: shrihari > Assignee: Jean-Baptiste Onofré > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > In some AIX/Linux environments, the activemq stop command fails with the > below error. > bash-4.4# ./activemq stop > INFO: Loading '/AMQ/message-broker/bin/env' > INFO: Using java '/usr/java8_64/bin/java' > ERROR: No or outdated process id in '/AMQ/message-broker//data/activemq.pid' > INFO: Removing /AMQ/message-broker//data/activemq.pid > > The fix provided in https://issues.apache.org/jira/browse/AMQ-8425 doesn't > work in such environments as the issue is not due to the user/terminal > instance. > > Workaround: > Some AIX/linux environments are highly sensitive to the *acute/backquot* > *character `* > Backquot character reference : > [https://www.computerhope.com/jargon/b/backquot.htm] > Update the file <AMQ_HOME>/message-broker/bin/activemq as below : > Change the line by removing backquot character : > RET="`ps -eo "pid,args" | grep "\s*$activemq_pid\s.java"`" to RET="ps -eo > "pid,args" | grep "\s$activemq_pid\s.*java"" > This will be inside checkRunning() function. -- This message was sent by Atlassian Jira (v8.20.1#820001)