From c763f55ae45938dbde70ade36959e4637a08bb7b Mon Sep 17 00:00:00 2001 From: Qihoo360 Date: Mon, 23 Sep 2013 11:42:02 +0800 Subject: [PATCH] pass param when call functions in mysql-proxyd --- script/mysql-proxyd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/script/mysql-proxyd b/script/mysql-proxyd index 600e5bc..1318faa 100755 --- a/script/mysql-proxyd +++ b/script/mysql-proxyd @@ -47,8 +47,8 @@ function stop() function restart() { - stop - start + stop $1 + start $1 } function status() @@ -66,19 +66,19 @@ function status() case $2 in "start") - start + start $1 ;; "stop") - stop + stop $1 ;; "restart") - restart + restart $1 ;; "status") - status + status $1 ;; *) echo "Usage: $0 instance {start|stop|restart|status}"