Skip to content

Commit

Permalink
pass param when call functions in mysql-proxyd
Browse files Browse the repository at this point in the history
  • Loading branch information
Qihoo360 committed Sep 23, 2013
1 parent 6cca551 commit c763f55
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions script/mysql-proxyd
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ function stop()

function restart()
{
stop
start
stop $1
start $1
}

function status()
Expand All @@ -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}"
Expand Down

0 comments on commit c763f55

Please sign in to comment.