From 3446a172d4019f28ea61605bb3f55f6996650c83 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) --- etc/init.d/proxysql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/init.d/proxysql b/etc/init.d/proxysql index 9c8313b29..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,7 +92,7 @@ stop() { if [ "X$pid" = "X" ] then echo "ProxySQL was not running." - exit 1 + exit 0 else # Note: we send a kill to all the processes, not just to the child for i in `pgrep proxysql` ; do