Revert "ARTEMIS-4630 Validate if the pid is really from Artemis"

This reverts commit 7ac6f4e99c.
This commit is contained in:
Justin Bertram 2024-02-06 11:02:55 -06:00
parent 968ef74cd7
commit 9bb19f6eb0
No known key found for this signature in database
GPG Key ID: F41830B875BB8633
1 changed files with 1 additions and 5 deletions

View File

@ -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}"