The daemonize-doublefork package

[Tags: gpl, library]

Start background daemons by double-forking.

See System.Posix.Daemon for documentation.


[Skip to ReadMe]

Properties

Versions0.1.0, 0.1.1
Change logNone available
Dependenciesbase (==4.*), directory, unix [details]
LicenseGPL-3
AuthorAlexandru Scvortov <scvalex@gmail.com>
Maintainerscvalex@gmail.com
Stabilityexperimental
CategoryWeb
Home pagehttps://github.com/scvalex/daemonize-doublefork
Source repositoryhead: git clone git://github.com/scvalex/daemonize-doublefork.git
UploadedSun Nov 27 13:38:19 UTC 2011 by AlexandruScvortov
DistributionsNixOS:0.1.1
Downloads371 total (15 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for daemonize-doublefork-0.1.0

daemonize-doublefork

Start background Haskell daemons by double-forking

What

This module provides startDaemon and stopDaemon to facilitate the creation of Haskell daemon programs.

The problem is as follows: the user starts a program in their terminal, but he wants the program to relinquish control of the terminal immediately, and furthermore, the program (or part of it) should keep running even after said terminal is closed. Examples of programs that behave like this are nginx and emacs --daemon.

The correct solution is to double-fork a process. This ensures that the child process is completed separated from the terminal it was started on.

See this page for a discussion on double-forking.

See the Hackage page for documentation and examples.

Install

This package is on Hackage. To install it, run:

cabal update
cabal install daemonize-doublefork