mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed init script fails to get pandora_agent's pid on CentOS 2.x.
Without -w option, the centos 2.x version of ps (procps-2.0.7) truncates long lines to 80 characters when output isn't a tty and thus init script fails to get pid of pandora_agent.. (cherry picked from commit c71e75045ee44ddfacf8fdbfe346079c3cd7abed)
This commit is contained in:
parent
6b841af730
commit
5679281bae
@ -66,7 +66,7 @@ pidof_pandora () {
|
||||
fi
|
||||
done
|
||||
else
|
||||
PANDORA_PID=`ps -Af | grep "$DAEMON $PANDORA_PATH" | grep -v grep | awk '{ print $2 }'`
|
||||
PANDORA_PID=`ps -Afw | grep "$DAEMON $PANDORA_PATH" | grep -v grep | awk '{ print $2 }'`
|
||||
fi
|
||||
|
||||
echo $PANDORA_PID
|
||||
|
Loading…
x
Reference in New Issue
Block a user