Added failure in start() for not running process

Added failure in start() for not running process
This commit is contained in:
MassimilianoPinto 2014-06-30 18:31:09 +02:00
parent 787483f71c
commit f5e6f99ba7

View File

@ -67,7 +67,7 @@ start() {
sleep 2
my_check=`status -p $MAXSCALE_PIDFILE $MAXSCALE_BIN/maxscale`
CHECK_RET=$?
[ $CHECK_RET -eq 0 ] && echo -n $my_check && success
[ $CHECK_RET -eq 0 ] && echo -n $my_check && success || failure
fi
# Return rigth code