Making sure that apache is stopped when nginx is running and vice versa