Fixes issue with nginx not restarting as it should.