clash of upstart and sysvinit scripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.6 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The mysql-server-5.6 installs two init-scripts: an upstart and a sysvinit one:
* /etc/init/
* /etc/init.d/mysql
Ubuntu uses upstart to manage the mysql-daemon, but this doesn't keep users from using /etc/init.d/mysql. This leads to confusing (and dangerous?) situation:
$ sudo status mysql
mysql start/running, process 1683
$ pgrep mysqld
1683
$ sudo /etc/init.d/mysql status
[..]
Server version 5.6.17-
Uptime: 8 min 30 sec
[..]
$ sudo /etc/init.d/mysql stop
* Stopping MySQL database server mysqld [fail]
$ sudo status mysql
mysql start/running, process 3853
So, stopping mysql with '/etc/init.d/mysql stop' actually did work, but upstart respawned the process like it should. This is very confusing.
Why does this package ship both init-scripts?
Status changed to 'Confirmed' because the bug affects multiple users.