From 1b2ea6a76b84d5dbad527b846d1031db6a4dd4c6 Mon Sep 17 00:00:00 2001 From: John W Smith Date: Wed, 30 Aug 2017 10:22:28 -0400 Subject: [PATCH 1/2] Add reload command to init.d script. --- etc/init.d/proxysql | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/etc/init.d/proxysql b/etc/init.d/proxysql index 6d6b90bfc..593c49ac5 100755 --- a/etc/init.d/proxysql +++ b/etc/init.d/proxysql @@ -63,6 +63,11 @@ initial() { start } +reload() { + OPTS="--initial $OPTS" + start +} + start() { echo -n "Starting ProxySQL: " mkdir $DATADIR 2>/dev/null @@ -175,6 +180,9 @@ case "$1" in initial) initial ;; + reload) + reload + ;; stop) stop ;; @@ -186,7 +194,7 @@ case "$1" in start ;; *) - echo "Usage: ProxySQL {start|stop|status|restart|initial}" + echo "Usage: ProxySQL {start|stop|status|reload|restart|initial}" exit 1 ;; esac From a57ebb36e72a226882010135d9f0f7be417618cc Mon Sep 17 00:00:00 2001 From: John W Smith Date: Wed, 30 Aug 2017 15:37:03 -0400 Subject: [PATCH 2/2] Fixing previous push for reload function --- etc/init.d/proxysql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/init.d/proxysql b/etc/init.d/proxysql index 593c49ac5..1cead22cb 100755 --- a/etc/init.d/proxysql +++ b/etc/init.d/proxysql @@ -64,7 +64,7 @@ initial() { } reload() { - OPTS="--initial $OPTS" + OPTS="--reload $OPTS" start }