Here's a smaller nicer patch to solve the problem. This one should be compatible with upstream Debian. By compatible I mean "won't break" upstream Debian, but the patch still only fixes the bug for upstart-based distros like Ubuntu.
Here's a smaller nicer patch to solve the problem. This one should be compatible with upstream Debian. By compatible I mean "won't break" upstream Debian, but the patch still only fixes the bug for upstart-based distros like Ubuntu.