daemonp

daemonp is a built-in function in `C source code'.

(daemonp)

Return non-nil if the current emacs process is a daemon.
If the daemon was given a name argument, return that name.