Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 199772

Summary: dev-db/mysql-init-scripts-1.2: typo in /etc/init.d/mysql
Product: Gentoo Linux Reporter: Igor Vinokurov <zynaps>
Component: Current packagesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: One-line patch to fix the default startuptimeout in the mysql init script

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-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.