summaryrefslogtreecommitdiff
path: root/support-files/mysql.server.sh
diff options
context:
space:
mode:
authormtaylor@qualinost.(none) <>2007-03-20 11:18:40 -0700
committermtaylor@qualinost.(none) <>2007-03-20 11:18:40 -0700
commit1f1bb54c19d919e0051d9b25367d62a89842ccfe (patch)
tree79f4e32d03f2549bb51c32f2d7dc023da2059c29 /support-files/mysql.server.sh
parentcd686bf7e8c3a87acc9efffadc069538d1b41dd4 (diff)
parent02fc829ff6cd9deaed713bf6ca413e862538a8d4 (diff)
downloadmariadb-git-1f1bb54c19d919e0051d9b25367d62a89842ccfe.tar.gz
Merge qualinost.(none):/home/mtaylor/src/mysql-5.0-maint
into qualinost.(none):/home/mtaylor/src/mysql-5.1-new-maint
Diffstat (limited to 'support-files/mysql.server.sh')
-rw-r--r--support-files/mysql.server.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/support-files/mysql.server.sh b/support-files/mysql.server.sh
index a84b9cfaec5..d2742c548b6 100644
--- a/support-files/mysql.server.sh
+++ b/support-files/mysql.server.sh
@@ -46,6 +46,13 @@
basedir=
datadir=
+# Default value, in seconds, afterwhich the script should timeout waiting
+# for server start.
+# Value here is overriden by value in my.cnf.
+# 0 means don't wait at all
+# Negative numbers mean to wait indefinitely
+service_startup_timeout=900
+
# The following variables are only set for letting mysql.server find things.
# Set some defaults
@@ -126,6 +133,7 @@ parse_server_arguments() {
;;
--user=*) user=`echo "$arg" | sed -e 's/^[^=]*=//'` ;;
--pid-file=*) server_pid_file=`echo "$arg" | sed -e 's/^[^=]*=//'` ;;
+ --service-startup-timeout=*) service_startup_timeout=`echo "$arg" | sed -e 's/^[^=]*=//'` ;;
--use-mysqld_safe) use_mysqld_safe=1;;
--use-manager) use_mysqld_safe=0;;
esac
@@ -143,7 +151,7 @@ parse_manager_arguments() {
wait_for_pid () {
i=0
- while test $i -lt 900 ; do
+ while test $i -ne $service_startup_timeout ; do
sleep 1
case "$1" in
'created')