IMO using daemon(3) is not a great idea. Instead, I like to use djb's 
daemontools to supervise my processes. 
For example, see the `README` and the `run` script in


On Thursday, November 29, 2018 at 2:56:25 AM UTC, Brian Adkins wrote:
> I briefly looked at the daemonize package on Ubuntu linux, but couldn't 
> get it to work properly. I found the following Rosetta Code page:
> So, I just tried the code in that example, and it seems to work fine:
> (module+ main
>         * ((get-ffi-obj 'daemon #f (_fun _int _int -> _int)) 0 0)*
>          (serve/servlet
>           dispatcher
>           #:log-file "hello.log"
>           #:stateless? #t
>           #:port 6995
>           #:command-line? #t
>           #:file-not-found-responder not-found
>           #:launch-browser? #f
>           #:servlet-regexp #rx""))
> I'm just wondering if there is a better way to accomplish this since it 
> feels a bit kludgy to me.
> Thanks,
> Brian

You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
For more options, visit

Reply via email to