mysqls keeps the terminal open as its stdin: /proc/.../fd lrwx------ 1 root root 64 Mar 10 11:37 0 -> /dev/pts/2 (deleted) Close it in the init script like so: /etc/init.d/mysql: # mysqld doesn't close stdin itself exec 0>&- start-stop-daemon \ Maybe closing streams appropriately would make a nice addition to start-stop-daemon as that is a standard responsibility of any daemon.
It doesn't use s-s-d at all right now.
Not sure what you mean: $ equery l mysql * Searching for mysql ... [IP-] [ ] dev-db/mysql-5.1.67:0 $ grep start-stop-daemon /etc/init.d/mysql start-stop-daemon \ start-stop-daemon \
This should be about dev-db/mysql-init-scripts package if anything as the init scripts are split off in their own package.
This is fixed in bug 498684 and OpenRC 0.14