Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a chrooted 10.04 LTS installation on a NAS, it works great but breaks Upstart very badly. MySQL only works via Upstart these days, so I created a workaround to start like this:

dtach -n /opt/svc/screens/mysql.dtach /usr/sbin/mysqld

However, I consider this very evil. Is there a better way to start MySQL server other than Upstart?


share|improve this question

Newer releases of Upstart (included with Ubuntu 11.04 and later) include chroot support, though you will have to be on a chroot that is running on top of one of those releases.

If you can't do that, you could simply copy the init script from the Debian package. Its available here:

You would put that in /etc/init.d as 'mysql', and run chmod +x /etc/init.d/mysql and then update-rc.d mysql to turn it on.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.