restart nginx and uwsgi when done