Summary: | mysql init script bad network handling | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Patrick Lauer <patrick> |
Component: | New packages | Assignee: | Gentoo Linux MySQL bugs team <mysql-bugs> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | aidanamarks, grknight, lips.john |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Patrick Lauer
![]() Hackaround that works awesomely: depend() { use net.lo net.eth0 # localmount needed for $basedir need localmount } (Yes, I know that it is wrong in the general case, but at least that server cleanly boots now ...) The answer appears to be in the conf.d file for mysql-init-scripts-2.0_pre1-r2. # Does your MySQL bind to an IP on an interface other than net.lo? # Alternatively you might wish to specify the exact interface here. #rc_use="net" #rc_after="net" Did you remove the comment and modify the values to suit your needs? None of the suggestions work for me. Tried adding use net.eth0 to /etc/init.d/mysql or setting rc_use or rc_after or both to net.eth0 and mysql still hangs on startup. I use ifplugd. I have to start mysql manually after booting. (In reply to comment #3) > None of the suggestions work for me. Tried adding use net.eth0 to > /etc/init.d/mysql or setting rc_use or rc_after or both to net.eth0 and > mysql still hangs on startup. > > I use ifplugd. I have to start mysql manually after booting. In your case, use rc_need="net.eth0" (or your specific interface) You can also use rc_need="net" for all interfaces. This will delay mysql from starting thanks to OpenRC. Note that mysql will fail to start if the interface is never active. IMPORTANT: This setting will gracefully stop mysql if the interface goes back to inactive. If that last part is undesirable, then your only option looks to be the manual start/stop of mysql *** Bug 427012 has been marked as a duplicate of this bug. *** |