Bugfix for Debian systems with systemd enabled.

More will probably be required.