Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 364213 - dev-db/mysql init script ignores STOPTIMEOUT conf.d value
Summary: dev-db/mysql init script ignores STOPTIMEOUT conf.d value
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on: 397925
Blocks:
  Show dependency tree
 
Reported: 2011-04-20 08:18 UTC by BigBug
Modified: 2012-02-02 03:07 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BigBug 2011-04-20 08:18:00 UTC
When mysql init script stops, it's always set STOPTIMEOUT to 120 sec. Error is in the get_slot_config() function.

Quickfix is to replace

CHROOT="" NICE="" STARTUPTIMEOUT=5 STOPTIMEOUT=120
with
CHROOT="" NICE="" STARTUPTIMEOUT=5 STOPTIMEOUT=${STOPTIMEOUT:=120}

Looks like it also ignores any variable mentioned there ;(

But it's unright fix and bug needs investigating.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-20 13:47:51 UTC
1) Please post your `emerge --info' output too.
1) Please post your `emerge -vpq dev-db/mysql' output too.
Comment 2 BigBug 2011-04-20 13:51:13 UTC
emerge --info
Portage 2.1.9.42 (unavailable, gcc-4.4.5, glibc-2.11.3-r0, 2.6.37-gentoo-r4-inet x86_64)
=================================================================
System uname: Linux-2.6.37-gentoo-r4-inet-x86_64-Intel-R-_Xeon-R-_CPU_E5405_@_2.00GHz-with-gentoo-1.12.14
Timestamp of tree: Unknown
dev-lang/python:     2.7.1-r1::gentoo, 3.1.3-r1::gentoo
sys-devel/autoconf:  2.13::gentoo, 2.65-r1::gentoo
sys-devel/automake:  1.11.1-r1::gentoo
sys-devel/binutils:  2.20.1-r1::gentoo
sys-devel/libtool:   2.2.10::gentoo
virtual/os-headers:  0::gentoo
ACCEPT_LICENSE="* -@EULA"
CFLAGS=""
CONFIG_PROTECT="/etc /usr/lib64/fax /usr/share/openvpn/easy-rsa /var/bind /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="" 
Unset:  ACCEPT_KEYWORDS, CHOST, EMERGE_DEFAULT_OPTS, PORTAGE_BUNZIP2_COMMAND, PORTDIR_OVERLAY


[binary   R   ] dev-db/mysql-5.0.91  USE="community extraengine max-idx-128 perl profiling ssl -berkdb -big-tables -cluster -debug -embedded -latin1 -minimal (-selinux) -static -test"
Comment 3 BigBug 2011-04-20 13:53:13 UTC
emerge --info
Portage 2.1.9.42 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.11.3-r0, 2.6.37-gentoo-r4-inet x86_64)
=================================================================
System uname: Linux-2.6.37-gentoo-r4-inet-x86_64-Intel-R-_Xeon-R-_CPU_E5405_@_2.00GHz-with-gentoo-1.12.14
Timestamp of tree: Wed, 20 Apr 2011 08:45:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.11.1-r1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.36.1
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O3 -fforce-addr -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev"
CXXFLAGS="-march=nocona -O3 -fforce-addr -fomit-frame-pointer -pipe"
DISTDIR="/var/shared/distfiles"
EMERGE_DEFAULT_OPTS="-bk"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.tups.lv/source/ http://trumpetti.atm.tut.fi/gentoo/ http://ds.thn.htu.se/linux/gentoo http://mirror.gentoo.no/ http://ftp.linux.ee/pub/gentoo/distfiles/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en lv ru"
MAKEOPTS="-j4"
PKGDIR="/var/shared/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/shared/portage"
PORTDIR_OVERLAY="/var/shared/overlay"
SYNC="rsync://gentoo.tups.lv/gentoo-portage"
USE="acpi amd64 apache2 async berkdb bzip2 caps cli cracklib crypt cxx device-mapper dri fastcgi fontconfig fortran gdbm gif gmp gs hdri iconv idn iproute2 jbig jpeg lcms logrotate mmx modules mudflap multilib ncurses network-cron nls nptl nptlonly openmp pam pcre pdf perl png pppd python readline session sse sse2 ssl sysfs syslog tiff truetype unicode urandom xml xorg zlib" APACHE2_MODULES="authz_host dir mime alias auth_basic deflate expires log_config rewrite setenvif env filter actions headers dav authn_file authz_user cgi" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard evdev" KERNEL="linux" LCD_DEVICES="ncurses text" LINGUAS="en lv ru" NGINX_MODULES_HTTP="access fastcgi gzip proxy rewrite upstream_ip_hash stub_status charset realip" PHP_TARGETS="php5-2 php5-3" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

sorry, were unright emerge --info
Comment 4 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2012-01-06 19:50:57 UTC
This issue was addressed in mysql-init-scripts-2.0_pre1-r2.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-02-02 03:07:19 UTC
New init scripts are stable on most arches.