Good blog post about running Emacs in daemon mode:
http://emacs-fu.blogspot.com/2009/02/emacs-daemon.html
Also a thread on how to cleanly shut the daemon down:
http://stackoverflow.com/questions/1167484/how-to-gracefully-shutdown-emacs-daemon