Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199772 - dev-db/mysql-init-scripts-1.2: typo in /etc/init.d/mysql
Summary: dev-db/mysql-init-scripts-1.2: typo in /etc/init.d/mysql
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial with 1 vote (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-20 13:15 UTC by Igor Vinokurov
Modified: 2010-11-16 13:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
One-line patch to fix the default startuptimeout in the mysql init script (mysql-init-scripts-1.2-startuptimeout.patch,447 bytes, patch)
2008-03-10 15:23 UTC, Jani-Matti Hätinen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Vinokurov 2007-11-20 13:15:20 UTC
From files/mysql.conf.d:

# ----------------+-----------------------------------------------------------
# startup_timeout : integer [seconds] default 15
#                 : time to wait for mysqld up and running, after this it's
#                 : marked as failed
# ----------------+-----------------------------------------------------------
#

but in files/mysql.rc6 default actually is:

STARTUPTIMEOUT=5

Reproducible: Always

Steps to Reproduce:
1. install mysql-init-scripts
2. look at /etc/init.d/mysql and /etc/conf.d/mysql

Actual Results:  
STARTUPTIMEOUT=5 in /etc/init.d/mysql

Expected Results:  
STARTUPTIMEOUT=15
Comment 1 James 2008-02-05 21:25:15 UTC
Bump!  I was having problems with mysql-5.0.54 not starting with my computer after a rebuild (so mysql-init-scripts-1.2 was rebuilt) and after editing /etc/init.d/mysql and going to the 15-sec startuptimeout, it starts correctly now.
Thanks,
cctsurf
Comment 2 Jani-Matti Hätinen 2008-03-10 15:22:12 UTC
Confirmed on amd64.

On startup the mysql init script failed, but still brought up the mysql process. Further manual attempts to start up the init script obviously complained about the existing server process.

This is a really annoying bug especially on dev boxes and other desktop systems (which are rebooted fairly often) running mysql.
Comment 3 Jani-Matti Hätinen 2008-03-10 15:23:10 UTC
Created attachment 145736 [details, diff]
One-line patch to fix the default startuptimeout in the mysql init script
Comment 4 Francesco Riosa 2008-03-10 15:37:36 UTC
(In reply to comment #1)
> Bump!  I was having problems with mysql-5.0.54 not starting with my computer
> after a rebuild (so mysql-init-scripts-1.2 was rebuilt) and after editing
> /etc/init.d/mysql and going to the 15-sec startuptimeout, it starts correctly
> now.

just out of curiosity setting "startup_timeout" in /etc/conf.d/mysql does equals to change it in the /etc/init.d/mysql script ?
Comment 5 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-11-16 13:55:55 UTC
The current mysql init script has the following:

            startup_timeout=*)
                STARTUPTIMEOUT="${my_default#startup_timeout=}" ;;

so this bug doesn't seem relevant anymore.