From e830cdb72cab2c81dd877d982f6a2becf4b6a4f5 Mon Sep 17 00:00:00 2001 From: Lee Clemens Date: Thu, 5 Jan 2017 12:32:28 -0500 Subject: [PATCH] Update return codes for LSB compliance start when already running and stop when already stopped should return successful return codes (0) Conflicts: etc/init.d/proxysql --- etc/init.d/proxysql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/init.d/proxysql b/etc/init.d/proxysql index 99af580bd..585488a2d 100755 --- a/etc/init.d/proxysql +++ b/etc/init.d/proxysql @@ -82,7 +82,7 @@ start() { fi else echo "ProxySQL is already running." - exit 1 + exit 0 fi } @@ -92,6 +92,7 @@ stop() { if [ "X$pid" = "X" ] then echo "ProxySQL was not running." + exit 0 else # Note: we send a kill to all the processes, not just to the child for i in `pgrep proxysql` ; do