Skip to content
This repository has been archived by the owner on Nov 12, 2017. It is now read-only.

scvalex/daemonize-doublefork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

daemonize-doublefork

Start background Haskell daemons by double-forking

Deprecated

This package has been deprecated in favour of daemons.

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

About

Start background Haskell daemons by double-forking

Resources

License

Stars

Watchers

Forks

Packages

No packages published