Lines 26-31
Link Here
|
26 |
# Default to "${mysql_dbdir}/${hostname}.pid". |
26 |
# Default to "${mysql_dbdir}/${hostname}.pid". |
27 |
# mysql_args (str): Custom additional arguments to be passed |
27 |
# mysql_args (str): Custom additional arguments to be passed |
28 |
# to mysqld_safe (default empty). |
28 |
# to mysqld_safe (default empty). |
|
|
29 |
# mysql_startup_timeout (int): How much time, in seconds, should |
30 |
# we wait for mysqld to start (default 900). |
29 |
# |
31 |
# |
30 |
|
32 |
|
31 |
. /etc/rc.subr |
33 |
. /etc/rc.subr |
Lines 59-65
Link Here
|
59 |
start_postcmd="${name}_poststart" |
61 |
start_postcmd="${name}_poststart" |
60 |
mysql_install_db="${procname}" |
62 |
mysql_install_db="${procname}" |
61 |
mysql_install_db_args="${mysql_extra} --basedir=%%PREFIX%% --datadir=${mysql_dbdir} --user=${mysql_user} --initialize" |
63 |
mysql_install_db_args="${mysql_extra} --basedir=%%PREFIX%% --datadir=${mysql_dbdir} --user=${mysql_user} --initialize" |
62 |
service_startup_timeout=900 |
64 |
: ${mysql_startup_timeout=900} |
63 |
startup_sleep=1 |
65 |
startup_sleep=1 |
64 |
sst_progress_file=${mysql_dbdir}/sst_in_progress |
66 |
sst_progress_file=${mysql_dbdir}/sst_in_progress |
65 |
extra_commands="bootstrap" |
67 |
extra_commands="bootstrap" |
Lines 94-100
Link Here
|
94 |
|
96 |
|
95 |
mysql_poststart() |
97 |
mysql_poststart() |
96 |
{ |
98 |
{ |
97 |
local timeout=${service_startup_timeout} |
99 |
local timeout=${mysql_startup_timeout} |
98 |
while [ ! -f "${pidfile}" -a ${timeout} -gt 0 ]; do |
100 |
while [ ! -f "${pidfile}" -a ${timeout} -gt 0 ]; do |
99 |
if test -e $sst_progress_file && [ $startup_sleep -ne 100 ]; then |
101 |
if test -e $sst_progress_file && [ $startup_sleep -ne 100 ]; then |
100 |
check_startmsgs && echo "SST in progress, setting sleep higher" |
102 |
check_startmsgs && echo "SST in progress, setting sleep higher" |