Merge branch '903-No-funciona-agent-daemon-start-en-AIX' into 'develop'

Load agent daemon for AIX in UNIX Daemon - #903

See merge request !510
This commit is contained in:
vgilc 2017-05-25 12:57:34 +02:00
commit 42c7474ceb
1 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,9 @@ pidof_pandora () {
break
fi
done
elif [ "$OS_NAME" = "AIX" ]; then
# AIX
PANDORA_PID=`ps -ef | grep "$DAEMON $PANDORA_PATH" | grep -v grep | awk '{ print $2 }'`
else
PANDORA_PID=`ps -Afw | grep "$DAEMON $PANDORA_PATH" | grep -v grep | awk '{ print $2 }'`
fi