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
pull/851/merge
Lee Clemens 9 years ago committed by René Cannaò
parent 74a1ee3d3f
commit e830cdb72c

@ -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

Loading…
Cancel
Save