Not answering the direct question, but I suggest the following in your init file to prevent this from happening in future.
;; Start server (but don't restart). (require 'server) (unless (server-running-p) (server-start)) Alternatively (but still not helpful for your present situation), under the FUBAR: Impossible to connect heading on the "Emacs As Daemon" EmacsWiki page, there's an ingenious approach to enabling a server start to be triggered with a process signal.