Use a PID file
Full-functioning update script