Fix pidof_pandora_ha to work with PAR::Packer binaries.

This commit is contained in:
Ramon Novoa 2022-02-24 18:03:33 +01:00
parent 27dd9c10e3
commit 49512027e3
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ function pidof_pandora_ha () {
# in a "strech" term, ps aux don't report more than COLUMNS
# characters and this will not work.
COLUMNS=300
PANDORA_PID=`ps aux | grep "$PANDORA_HA -d -p $PID_DIR/pandora_ha.pid $PANDORA_HOME" | grep -v grep | tail -1 | awk '{ print $2 }'`
PANDORA_PID=`ps aux | grep "$PANDORA_HA" | grep "$PANDORA_HOME" | grep -v grep | tail -1 | awk '{ print $2 }'`
echo $PANDORA_PID
}