/etc/init.d/mysql run without privileges reports wrong status.
Bug #269298 reported by
Jo-Erlend Schinstad
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-dfsg-5.1 (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
After installing a LAMP-stack in Hardy, if you run /etc/init.d/mysql status without root privileges, you get an error:
user@host:~$ /etc/init.d/mysql status
cat: /var/run/
open: Permission denied
* MySQL is stopped.
But MySQL isn't stopped.
To post a comment you must log in.
The init script should check if the pid file can read instead of checking if it exists.