Handle systemd when it is present.