daemontools

From Gentoo Wiki
Jump to: navigation, search

Daniel J. Bernstein's daemontools package, described by him as "a collection of tools for managing UNIX services", is the pioneer of what some people call today process supervision suites, i.e. packages that provide tools for performing process supervision[1] [2] [3]. There are no further releases of daemontools after 0.76, but other software packages have been inspired by its design principles, notably runit, s6, perp, nosh, and an enhanced succesor, daemontools-encore [4].

Installation

USE flags

USE flags for sys-process/daemontools Collection of tools for managing UNIX services

selinux !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur global

Emerge

root #emerge --ask sys-process/daemontools

Configuration

Files

  • /service - Location of the scan directory when using OpenRC or svscanboot.

Service

OpenRC

See here for details.

Usage

See daemontools-encore.

Removal

Unmerge

root #emerge --ask --depclean sys-process/daemontools

The same extra steps after removing daemontools-encore apply here.

See also

  • runit — a daemontools-inspired process supervision suite that also provides a program suitable for running as process 1
  • OpenRC — a dependency-based init system that maintains compatibility with the system provided init program
  • systemd — a modern SysV-style init and rc replacement for Linux systems.

External resources

References

  1. D. J. Bernstein, daemontools FAQ, which includes one about the benefits of process supervision. Retrieved on April 23rd, 2017.
  2. Gerrit Pape, runit benefits, which includes a short description of process supervision in general. Retrieved on April 23rd, 2017.
  3. Laurent Bercot, s6 overview, which contains an introduction to process supervision. Retrieved on April 23rd, 2017.
  4. Jonathan de Boyne Pollard, The daemontools family. Retrieved on May 16th, 2017.