Created
July 8, 2012 14:38
-
-
Save snmsts/3071230 to your computer and use it in GitHub Desktop.
usage of daemon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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