Untested, but looks reasonable. However, note that you can now use the Upstart apparmor profile rather than using the pre-start for that:
apparmor load /etc/apparmor.d/usr.sbin.mysqld
pre-start script
# ...
end script
Untested, but looks reasonable. However, note that you can now use the Upstart apparmor profile rather than using the pre-start for that:
apparmor load /etc/apparmor. d/usr.sbin. mysqld
pre-start script
# ...
end script