Skip to content

Instantly share code, notes, and snippets.

@snmsts
Created July 8, 2012 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snmsts/3071230 to your computer and use it in GitHub Desktop.
Save snmsts/3071230 to your computer and use it in GitHub Desktop.
usage of daemon
(daemon:daemonize :exit-parent t)
(with-open-file (out #P "/tmp/daemonlog" :direction :output :if-exists :supersede)
(format out "~A ~A~%~A~%"
(lisp-implementation-type)
(lisp-implementation-version)
(daemon::getpid)))
(sleep 90)
(daemon:exit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment