Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

Thanks!

share|improve this question
add comment

1 Answer

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:

http://bazaar.launchpad.net/~ubuntu-branches/debian/sid/mysql-5.1/sid/view/head:/debian/mysql-server-5.1.mysql.init

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
add comment

Your Answer

 
discard

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.