I fixed this for mariadb by adding a patch to the .deb packaging that puts #!/bin/bash in the header of mysqld_safe.
Fix will be available from 5.1.52 and 5.2.4. ** Changed in: maria Status: In Progress => Fix Committed -- [Hardy SRU] dash bug causes mysqld_safe to spin at 100% CPU https://bugs.launchpad.net/bugs/675185 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs