Fix pidof_pandora_ha to work with PAR::Packer binaries.
This commit is contained in:
parent
27dd9c10e3
commit
49512027e3
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue