This is still far from optimal but the nature of the initscripts does not really allow for much better. fixes #20028