Create a PID file on the shared/pids directory

Just a quick improvement of the upstart script.