[ubuntu 10.4] when _boot_ in single mode, mysql is running

Bug #559533 reported by Goffredo Baroncelli on 2010-04-09
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-dfsg-5.1 (Ubuntu)
Wishlist
Unassigned

Bug Description

System: Ubuntu 10.4
Package: mysql-server-5.1 (5.1.41-3ubuntu11)

When I *booted* the system in single mode (or recovery mode), the mysql server is running. I think that in the single mode the mysql server should not run.

Test case:
- install mysql-server
- boot the system in single mode (or recovery mode from the grub menu)

Explanation:
The upstart mysql.conf file, starts the mysql server when two events are reached:
1) net-device-up
2) local-filesystems

These two event are reached even when the system boots in single mode with the network.

Suggested action:

change the line

   start on (net-device-up and local-filesystems)

with

   start on runlevel [2345]

or better

    start on (net-device-up and local-filesystems and runlevel [2345])

Note:
The file mysql.conf has the following line

  stop on runlevel [016]

but this line means:
STOP ( != not start) the mysql server in the runlevel 0,1,6

Related branches

Mathias Gug (mathiaz) wrote :

Isn't single mode supposed to *not* start the network?

Changed in mysql-dfsg-5.1 (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
Dustin Kirkland  (kirkland) wrote :

Hmm, sounds reasonable, but wishlist. Thanks for the report!

Changed in mysql-dfsg-5.1 (Ubuntu):
importance: Low → Wishlist

> Isn't single mode supposed to *not* start the network?

When I boot in the single mode, a menu appears and I can select different profiles. One profile is root + network

Chuck Short (zulcss) on 2010-04-16
Changed in mysql-dfsg-5.1 (Ubuntu):
status: Incomplete → Confirmed
Chuck Short (zulcss) wrote :

This should be fixed from lucid on.

Changed in mysql-dfsg-5.1 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers