Experienced this problem following a simple upgrade of a few packages
including mysql (see below). Afterward mysql did not start on boot.
I tried appending "IFACE=lo" to "net-device-up" as recommended above,
but this made no difference. To fix I had to remove the line "and
runlevel[2345]".

Not sure why this makes any difference as "runlevel" returns "N 2". But
now mysql starts on boot.

My fix:

--- /etc/init/mysql.conf.bak    2010-07-28 10:29:51.733012958 +1000
+++ /etc/init/mysql.conf        2010-07-28 10:45:11.099834819 +1000
@@ -4,8 +4,7 @@
 author          "Mario Limonciello <supe...@ubuntu.com>"
 
 start on (net-device-up
-          and local-filesystems
-         and runlevel[2345])
+          and local-filesystems)
 stop on runlevel [016]

>From /var/log/apt/history.log:

Start-Date: 2010-07-27  15:32:25
Install: samba-common-bin (3.4.7~dfsg-1ubuntu3.1)
Upgrade: libkrb5-3 (1.8.1+dfsg-2ubuntu0.1, 1.8.1+dfsg-2ubuntu0.2), 
libkrb5support0 (1.8.1+dfsg-2ubuntu0.1, 1.8.1+dfsg-2ubuntu0.2), gparted 
(0.5.1-1ubuntu2, 0.5.1-1ubuntu3), mysql-client-core-5.1 (5.1.41-3ubuntu12.3, 
5.1.41-3ubuntu12.4), apt-transport-https (0.7.25.3ubuntu9, 0.7.25.3ubuntu9.1), 
xserver-common (1.7.6-2ubuntu7.2, 1.7.6-2ubuntu7.3), mysql-server-5.1 
(5.1.41-3ubuntu12.3, 5.1.41-3ubuntu12.4), python-apt (0.7.94.2ubuntu6.1, 
0.7.94.2ubuntu6.2), mysql-client-5.1 (5.1.41-3ubuntu12.3, 5.1.41-3ubuntu12.4), 
mysql-common (5.1.41-3ubuntu12.3, 5.1.41-3ubuntu12.4), xserver-xorg-core 
(1.7.6-2ubuntu7.2, 1.7.6-2ubuntu7.3), libsmbclient (3.4.7~dfsg-1ubuntu3, 
3.4.7~dfsg-1ubuntu3.1), libk5crypto3 (1.8.1+dfsg-2ubuntu0.1, 
1.8.1+dfsg-2ubuntu0.2), apt-utils (0.7.25.3ubuntu9, 0.7.25.3ubuntu9.1), 
mysql-server-core-5.1 (5.1.41-3ubuntu12.3, 5.1.41-3ubuntu12.4), apt 
(0.7.25.3ubuntu9, 0.7.25.3ubuntu9.1), firefox 
(3.6.6+nobinonly-0ubuntu0.10.04.1, 3.6.8+build1+nobinonly-0ubuntu0.10.04.1), 
gdm (2.30.2.is.2.30.0-0ubuntu2, 2.30.2.is.2.30.0-0ubuntu3), mysql-server 
(5.1.41-3ubuntu12.3, 5.1.41-3ubuntu12.4), firefox-gnome-support 
(3.6.6+nobinonly-0ubuntu0.10.04.1, 3.6.8+build1+nobinonly-0ubuntu0.10.04.1), 
samba (3.4.7~dfsg-1ubuntu3, 3.4.7~dfsg-1ubuntu3.1), libwbclient0 
(3.4.7~dfsg-1ubuntu3, 3.4.7~dfsg-1ubuntu3.1), firefox-3.5 
(3.6.6+nobinonly-0ubuntu0.10.04.1, 3.6.8+build1+nobinonly-0ubuntu0.10.04.1), 
libmysqlclient16 (5.1.41-3ubuntu12.3, 5.1.41-3ubuntu12.4), libfreetype6 
(2.3.11-1ubuntu2, 2.3.11-1ubuntu2.1), samba-common (3.4.7~dfsg-1ubuntu3, 
3.4.7~dfsg-1ubuntu3.1), firefox-branding (3.6.6+nobinonly-0ubuntu0.10.04.1, 
3.6.8+build1+nobinonly-0ubuntu0.10.04.1), libgssapi-krb5-2 
(1.8.1+dfsg-2ubuntu0.1, 1.8.1+dfsg-2ubuntu0.2)
End-Date: 2010-07-27  15:35:41

-- 
Upstart does not successfully start mysql on boot
https://bugs.launchpad.net/bugs/610085
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to