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

Bug #559533 reported by Goffredo Baroncelli
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-dfsg-5.1 (Ubuntu)
Fix Released
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

Revision history for this message
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
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

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

Changed in mysql-dfsg-5.1 (Ubuntu):
importance: Low → Wishlist
Revision history for this message
Goffredo Baroncelli (kreijack-inwind) wrote :

> 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)
Changed in mysql-dfsg-5.1 (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.