From f5e6f99ba72b046895899eef99b8070ae91cf725 Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Mon, 30 Jun 2014 18:31:09 +0200 Subject: [PATCH] Added failure in start() for not running process Added failure in start() for not running process --- etc/init.d/maxscale | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/init.d/maxscale b/etc/init.d/maxscale index 42ae02f31..567c8f284 100644 --- a/etc/init.d/maxscale +++ b/etc/init.d/maxscale @@ -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