update
This commit is contained in:
		| @@ -32,9 +32,9 @@ function Print { | ||||
|  | ||||
| function Quit { | ||||
|     Print killing greatsql ... | ||||
|     mysqladmin shutdown || true | ||||
|     greatsqladmin shutdown || true | ||||
|     while :; do | ||||
|         pkill -f mysqld && Print killing greatsql ... || break | ||||
|         pkill -f greatsqld && Print killing greatsql ... || break | ||||
|         sleep 1 | ||||
|     done | ||||
|     Print Container stopped. | ||||
| @@ -71,7 +71,7 @@ function ImportInitSql { | ||||
| } | ||||
|  | ||||
| function StartProc { | ||||
|     mysqld & | ||||
|     greatsqld & | ||||
|     PIDS="$PIDS $!" | ||||
|     while sleep 1; do | ||||
|         [ -e $SOCK_FILE ] && break || echo -n . | ||||
| @@ -88,7 +88,7 @@ function Main { | ||||
|     Init | ||||
|     StartProc | ||||
|     trap "GOT_SIGTERM=1; Print Got SIGTERM ..." SIGTERM | ||||
|     while [ -z "$GOT_SIGTERM" ] && sleep 1; do | ||||
|     while [ -z "$GOT_SIGTERM" ] && sleep 2; do | ||||
|         for pid in $PIDS; do | ||||
|             [ ! -e /proc/$pid ] && Print Unexpected error! && exit | ||||
|         done | ||||
|   | ||||
		Reference in New Issue
	
	Block a user