Added 2 seconds delay between nginx stop and start for the pi is not that fast