[Haskell-cafe] How to daemonize a threaded Haskell program?

Sterling Clover s.clover at gmail.com
Sun Mar 6 02:31:00 CET 2011


On Mar 5, 2011, at 5:59 PM, Bas van Dijk wrote:

> On 5 March 2011 21:51, Vincent Hanquez <tab at snarc.org> wrote:
>> On Sat, Mar 05, 2011 at 08:51:59PM +0100, Bas van Dijk wrote:
>>> Hello,
>>> 
>>> I like to turn my Haskell program into a unix daemon. One of the steps
>>> in "daemonizing" a process is to fork it then exit the parent and
>>> continue with the child. All this is nicely abstracted in
>>> hdaemonize[1] which internally calls forkProcess[2].

Have you looked at direct-daemonize[1]?

I'm not sure if it will do the job, but it's certainly worth mentioning.

Cheers,
Sterl




More information about the Haskell-Cafe mailing list