Revision of Daemontools from Thu, 03/11/2010 - 16:31

Revisions allow you to track differences between multiple versions of your content, and revert back to older versions.

daemontools is a collection of tools for managing UNIX services that was created by Daniel J. Bernstein.

To simplify management of the various daemons on the server, install daemontools. Asides from some other benefits, a really nice thing about daemontools is that gives a consistent means of managing different services rather than a mish-mosh of different init scripts, rc.d scripts, etc.

Installation
Setup a directory to download your source file into:

mkdir -p /package
chmod 1755 /package
cd /package

Download the current version of daemontools

wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
tar zxpf daemontools-0.76.tar.gz
cd admin/daemontools-0.76

This command fixes "the errno problem" with glibc 2.3 and newer, and should be safe to use on any system.

sed -i '/extern int errno/{s/^/\/* /;s/$/ *\//;G;s/$/#include <errno.h>/;}' src/error.h

This command fixes the problem with Mac OS X 10.4, and should only be used on OS X 10.4 machines.

echo x >> src/trypoll.c

Compile and install daemontools:

package/install

/service is meant to only hold symbolic links to the actual service directories. So create a directory in /var to hold them:

mkdir /var/service

Recent Updates

  • 2 years 1 week ago
  • 2 years 1 week ago
  • 2 years 1 week ago
    php 8.x
  • 2 years 1 week ago
    10.6.7
  • 2 years 1 week ago
    Drop Centos 5/6 stuff