packages feed

direct-daemonize

Library to switch to daemon mode using built-in OS facilities.

view on Hackage

This package is a wrapper around the daemon() function on BSD-like Unices, including Mac OS X and glibc-based Linux distributions. It does not function on other systems. Version 3.1 adds the ability to do something after forking but before dropping privileges. It also no longer uses the system-provided daemon() function, which is highly unfortunate but necessary with the RTS's use of per-process timers. Version 3.0.0.1 updates this documentation to be properly broken into paragraphs. Version 3.0 cleans up the parameters structure. Version 2.0 fixes compatibility problems with the threaded GHC runtime. Doing this required two non-backwards-compatible API changes. First, the daemonize function now takes an action to perform as a daemon, and never returns. Second, the functionality of closing all open files has been removed, as it caused crashes. As a substitute, the option of closing only the three standard streams has been added and made the default. Version 1.0 was the initial release.
versionuploadeduploaderchanges
3.12013-02-19 14:23 UTCIreneKnapp+38/−39 lines, 2 filesPVP ok
3.02012-06-20 20:49 UTCIreneKnapp+36/−30 lines, 3 filesPVP ok
1.02010-09-08 01:33 UTCIreneKnapp+135/−0 lines, 4 filesdep +basedep +unixsetup-changed

Dependencies of direct-daemonize-3.1

base >=4.1 && <5 4.22.0.0 → 4.22.1.0
2026-12-01 12:38 UTC4.22.1.0+388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested
2025-12-19 11:52 UTC4.22.0.0+886/−215 lines, 28 filesdep ~ghc-internalPVP ok
2026-03-27 12:26 UTC4.21.2.0+10/−3 lines, 4 filesdep ~ghc-internalPVP ok
2025-12-27 10:31 UTC4.21.1.0+17/−5 lines, 4 filesdep ~ghc-internalPVP ok
2024-12-16 09:24 UTC4.21.0.0+1170/−396 lines, 39 filesdep ~ghc-internalPVP ok

showing 5 of 61 versions

unix >=2.4.0.1 2.8.7.0 → 2.8.8.0
2025-09-23 08:10 UTC2.8.8.0+161/−207 lines, 6 filesdep ~basedep ~timePVP ok
2025-05-10 14:12 UTC2.8.7.0+8400/−7941 lines, 12 filesdep ~basedep ~timePVP ok
2024-11-19 15:41 UTC2.8.6.0+1133/−333 lines, 14 filesdep ~basedep ~timePVP: major bump suggested
2024-04-08 19:21 UTC2.8.5.1+7507/−6738 lines, 5 filesdep ~basedep ~filepathdep ~os-stringPVP: major bump suggested
2023-12-01 00:53 UTC2.8.5.0+55/−9 lines, 7 filesdep +os-stringdep ~filepathdep ~timePVP ok

showing 5 of 34 versions

Reverse dependencies

2 packages depend on direct-daemonize

direct-http 0.6 requires direct-daemonize >=3.1 && <4
odd-jobs 0.2.2 requires direct-daemonize >=0