Revert "ARTEMIS-4630 Validate if the pid is really from Artemis"
This reverts commit 7ac6f4e99c
.
This commit is contained in:
parent
968ef74cd7
commit
9bb19f6eb0
|
@ -59,13 +59,9 @@ fi
|
|||
status() {
|
||||
if [ -f "${PID_FILE}" ] ; then
|
||||
pid=`cat "${PID_FILE}"`
|
||||
pid_workdir=$ARTEMIS_INSTANCE
|
||||
if [ `command -v lsof &> /dev/null` ]; then
|
||||
pid_workdir="`lsof -a -d cwd -p ${pid} | awk '{print $9}' | tail -1`"
|
||||
if
|
||||
# check to see if it's gone...
|
||||
ps -p ${pid} > /dev/null
|
||||
if [ $? -eq 0 ] && [ "$pid_workdir" = "$ARTEMIS_INSTANCE" ]; then
|
||||
if [ $? -eq 0 ] ; then
|
||||
return 0
|
||||
else
|
||||
rm "${PID_FILE}"
|
||||
|
|
Loading…
Reference in New Issue