check_webservice_load.sh: fix errors for redis-server check.
This commit is contained in:
parent
d02b25089e
commit
96bdb83da0
@ -403,7 +403,7 @@ fi
|
|||||||
|
|
||||||
if $check_redis ; then
|
if $check_redis ; then
|
||||||
|
|
||||||
REDISD="$(realpath $(which redis-server))"
|
REDISD="$(which redis-server)"
|
||||||
if [ -z "$REDISD" ]; then
|
if [ -z "$REDISD" ]; then
|
||||||
if [ -x "/usr/sbin/redis-server" ]; then
|
if [ -x "/usr/sbin/redis-server" ]; then
|
||||||
REDISD="/usr/sbin/redis-server"
|
REDISD="/usr/sbin/redis-server"
|
||||||
@ -1689,7 +1689,7 @@ fi
|
|||||||
#-----------------------------
|
#-----------------------------
|
||||||
#---------------------------------------
|
#---------------------------------------
|
||||||
|
|
||||||
if $check_nginx ; then
|
if $check_redis ; then
|
||||||
|
|
||||||
echo "" > $LOCK_DIR/extra_msg.txt
|
echo "" > $LOCK_DIR/extra_msg.txt
|
||||||
|
|
||||||
@ -1697,7 +1697,7 @@ if $check_nginx ; then
|
|||||||
echo -e "\nChecking Redis Caching Service on \"`hostname -f`\".."
|
echo -e "\nChecking Redis Caching Service on \"`hostname -f`\".."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PID=`ps aux | grep "$REDISD " | grep -v grep | awk '{print$2}'`
|
PID=`ps aux | grep "$REDISD" | grep -v grep | awk '{print$2}'`
|
||||||
if [ "X${PID}X" = "XX" ];then
|
if [ "X${PID}X" = "XX" ];then
|
||||||
|
|
||||||
echo -e "\nRedis Caching Service is not running! - Try to start it.." > $LOCK_DIR/extra_msg.txt
|
echo -e "\nRedis Caching Service is not running! - Try to start it.." > $LOCK_DIR/extra_msg.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user