2007-08-23 Sancho Lerena <slerena@gmail.com>
* Fixed a BUG in daemon launcher scripts that makes to do not stop servers :( git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@614 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
c89f61a9d9
commit
bcd6f2c6c3
|
@ -1,4 +1,6 @@
|
||||||
2007-08-23 Sancho Lerena <slerena@gmail.com>
|
2007-08-23 Sancho Lerena <slerena@gmail.com>
|
||||||
|
|
||||||
|
* Fixed a BUG in daemon launcher scripts that makes to do not stop servers :(
|
||||||
|
|
||||||
* Added a updated README.
|
* Added a updated README.
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ case "$1" in
|
||||||
$PANDORA_DAEMON $PANDORA_HOME -D
|
$PANDORA_DAEMON $PANDORA_HOME -D
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
MYPID=`ps aux | grep 'pandora_network' | grep -v grep | tail -1 | awk '{print $2}'`
|
MYPID=`ps aux | grep "$PANDORA_DAEMON" | grep -v grep | tail -1 | awk '{ print $2 }'`
|
||||||
if [ ! -z "$MYPID" ]
|
if [ ! -z "$MYPID" ]
|
||||||
then
|
then
|
||||||
echo $MYPID > $PANDORA_PID
|
echo $MYPID > $PANDORA_PID
|
||||||
|
@ -60,6 +60,8 @@ case "$1" in
|
||||||
if [ ! -z "`ps -F -p $PID_2 | grep -v grep | grep 'pandora_network' `" ]
|
if [ ! -z "`ps -F -p $PID_2 | grep -v grep | grep 'pandora_network' `" ]
|
||||||
then
|
then
|
||||||
kill `cat $PANDORA_PID` 2> /dev/null > /dev/null
|
kill `cat $PANDORA_PID` 2> /dev/null > /dev/null
|
||||||
|
else
|
||||||
|
echo "Pandora FMS Network Server is not executing with PID $PID_2, skip Killing step"
|
||||||
fi
|
fi
|
||||||
rm -f $PANDORA_PID
|
rm -f $PANDORA_PID
|
||||||
else
|
else
|
||||||
|
|
|
@ -42,7 +42,7 @@ case "$1" in
|
||||||
$PANDORA_DAEMON $PANDORA_HOME -D
|
$PANDORA_DAEMON $PANDORA_HOME -D
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
MYPID=`ps aux | grep 'pandora_recon' | grep -v grep | tail -1 | awk '{print $2}'`
|
MYPID=`ps aux | grep "$PANDORA_DAEMON" | grep -v grep | tail -1 | awk '{print $2}'`
|
||||||
if [ ! -z "$MYPID" ]
|
if [ ! -z "$MYPID" ]
|
||||||
then
|
then
|
||||||
echo $MYPID > $PANDORA_PID
|
echo $MYPID > $PANDORA_PID
|
||||||
|
|
|
@ -42,7 +42,7 @@ case "$1" in
|
||||||
$PANDORA_DAEMON $PANDORA_HOME -D
|
$PANDORA_DAEMON $PANDORA_HOME -D
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
MYPID=`ps aux | grep 'pandora_server' | grep -v grep | tail -1 | awk '{print $2}'`
|
MYPID=`ps aux | grep "$PANDORA_DAEMON" | grep -v grep | tail -1 | awk '{print $2}'`
|
||||||
if [ ! -z "$MYPID" ]
|
if [ ! -z "$MYPID" ]
|
||||||
then
|
then
|
||||||
echo $MYPID > $PANDORA_PID
|
echo $MYPID > $PANDORA_PID
|
||||||
|
|
|
@ -47,7 +47,7 @@ case "$1" in
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SNMP_WARNING=`ps aux | grep "snmptrapd" | grep -v grep | wc -l`
|
SNMP_WARNING=`ps aux | grep "$DAEMON_PATH" | grep -v grep | wc -l`
|
||||||
if [ $SNMP_WARNING == 1 ]
|
if [ $SNMP_WARNING == 1 ]
|
||||||
then
|
then
|
||||||
echo "WARNING: Seems to be already running a SNMP trap daemon on this system not associated with Pandora FMS"
|
echo "WARNING: Seems to be already running a SNMP trap daemon on this system not associated with Pandora FMS"
|
||||||
|
@ -101,7 +101,7 @@ case "$1" in
|
||||||
$PANDORA_DAEMON $PANDORA_HOME -D
|
$PANDORA_DAEMON $PANDORA_HOME -D
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
MYPID=`ps aux | grep 'pandora_snmpconsole' | grep -v grep | tail -1 | awk '{print $2}'`
|
MYPID=`ps aux | grep "$PANDORA_DAEMON" | grep -v grep | tail -1 | awk '{print $2}'`
|
||||||
if [ ! -z "$MYPID" ]
|
if [ ! -z "$MYPID" ]
|
||||||
then
|
then
|
||||||
echo $MYPID > $PANDORA_PID
|
echo $MYPID > $PANDORA_PID
|
||||||
|
|
Loading…
Reference in New Issue