package dtools

  1. Overview
  2. Docs
Library providing various helper functions to make daemons

Install

Dune Dependency

Authors

Maintainers

Sources

v0.4.5.tar.gz
md5=2df3d1025bf5478e7625f39178a1fb77
sha512=096ffdfc8ba04add0e106034d9f739b841763b28e05f947dc975665ce8ce6e7a66084f67e27e9843e07079588d1640f5077b0073427b614dc061d2a02ef323b5

CHANGES.html

CHANGES

0.4.5 (2023-06-27)
=====
* Add optional log colorization function.

0.4.4 (10-07-2021)
=====
* Export Log object's path.

0.4.3 (24-06-2021)
=====
* Split log string by lines before printing.
* Cleanup daemon args.
* Remove `conf_concurrent`
* Added `conf_daemon_pidfile_perms`

0.4.2 (27-02-2020)
=====
* Added `Conf` values validation API, thanks to @CyberDomovoy
* Switched to dune

0.4.1 (09-11-2018)
=====
* Use seperate thread for logging, finer-grained critical section to avoid
  deadlock with `Gc.finalise` logging messages.

0.4.0 (08-18-2018)
=====
* Raise Root_prohibited exception instead of exiting when running as root.

0.3.4 (08-10-2017)
=====
* Added on_change to Conf.t

0.3.3 (11-04-2017)
=====
* Catch USR1 signal regardless of logging configuration.

0.3.2 (03-08-2015)
=====
* Dummy github release.

0.3.1 (08-05-2013)
=====
* Added daemon cleanup that removed
  PID file.

0.3.0 (25-06-2012)
=====
* Added Conf.alias

0.2.2 (26-06-2011)
=====
* Cleaned up daemonization code,
  added optional change of user, 
  should be useful when running 
  as root.

0.2.1 (18-09-2010)
=====
* Fixed requires, s/thread/threads/

0.2.0 (19-08-2010)
=====
* Use Thread.join instead of Thread.wait_signal
  under Win32 (Thread.wait_signal is not implemented
  in this case). Also do not use sigmask since it is 
  not implemented either.
* Added support for Syslog when detected.

0.1.6 (15-04-2008)
=====
* Added support for --enable-debugging configure option
* Reopen stdin/out/er instead of closing them
* Install .cmx file when available
* Set as blocked signals that we use with Thread.wait_signal,
  i.e. sigterm and sigint. Those are not blocked
  by default on some systems (e.g. freeBSD).

0.1.5 (12-12-2007)
=====
* Fix: better daemon setup:
  + Close stdout and stderr
  + Set umask to 0
  + Change pwd to /

0.1.4 (10-17-2007)
=====
* Fix: do not include whole thread and unix lib in dtools lib
* Conf: full rewrite, keys are documented
* Conf: new: --conf-descr and --conf-dump features
* Log: full rewrite, loggers are associated to keys
* Log: fix: small error in timestamp generation

0.1.3 (02-03-2007)
=====
* Fixed a deadlock
* Made possible to check the type of a settings variable

0.1.2 (07-07-2006)
=====
* Log: new human-readable timestamps by default.
* Init: remove the pidfile.
* Init: concurrent init disabled by default.
* Init: better handling of exceptions in start/stop phases.

0.1.1 (20-04-2005)
=====
* Conf: added: access to a reference containing a volatile configuration value.
* Init: added: init tracability support.
* Init: added: multithreaded init.
* Conf: added: global default logging level key.
* Conf: fix: Better handling of values syntax error exceptions.
* Conf: fix: Bad configuration pair notification takes ~root in account.
* Init: added: Support for depends, triggers, before and after lists.
* Init: fix: Better Daemonization.

0.1.0 (28-02-2004)
=====
* Initial release.
OCaml

Innovation. Community. Security.