{/doc/acs-core-docs {ACS Core Documentation}} {Install Daemontools (OPTIONAL)} Install Daemontools (OPTIONAL)

Install Daemontools (OPTIONAL)

Daemontools is a collection of programs for controlling other processes. We use daemontools to run and monitor AOLserver. It is installed in /package. These commands install daemontools and svgroup. svgroup is a script for granting permissions, to allow users other than root to use daemontools for specific services.

  1. Install Daemontools

    download daemontools and install it.

    • Red Hat 8

      [root root]# mkdir -p /package
      [root root]# chmod 1755 /package/
      [root root]# cd /package/
      [root package]# tar xzf /tmp/daemontools-0.76.tar.gz
      [root package]# cd admin/daemontools-0.76/
      [root daemontools-0.76]# package/install
      Linking ./src/* into ./compile...
      
      Creating /service...
      Adding svscanboot to inittab...
      init should start svscan now.
      [root root]#
      mkdir -p /package 
      chmod 1755 /package 
      cd /package 
      tar xzf /tmp/daemontools-0.76.tar.gz 
      cd admin/daemontools-0.76 
      package/install
      
    • Red Hat 9, Fedora Core 1-4

      Make sure you have the source tarball in /tmp, or download it.

      [root root]# mkdir -p /package
      [root root]# chmod 1755 /package/
      [root root]# cd /package/
      [root package]# tar xzf /tmp/daemontools-0.76.tar.gz
      [root package]# cd admin
      [root admin]# wget http://www.qmail.org/moni.csi.hu/pub/glibc-2.3.1/daemontools-0.76.errno.patch
      --14:19:24--  http://moni.csi.hu/pub/glibc-2.3.1/daemontools-0.76.errno.patch
                 => `daemontools-0.76.errno.patch'
      Resolving moni.csi.hu... done.
      Connecting to www.qmail.org[141.225.11.87]:80... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 355 [text/plain]
      
      100%[====================================>] 355          346.68K/s    ETA 00:00
      
      14:19:24 (346.68 KB/s) - `daemontools-0.76.errno.patch' saved [355/355]
      
      [root admin]# cd daemontools-0.76
      [root daemontools-0.76]# patch -p1 < ../daemontools-0.76.errno.patch
      [root daemontools-0.76]# package/install
      Linking ./src/* into ./compile...(many lines omitted)
      Creating /service...
      Adding svscanboot to inittab...
      init should start svscan now.
      [root root]#
      mkdir -p /package 
      chmod 1755 /package 
      cd /package 
      tar xzf /tmp/daemontools-0.76.tar.gz 
      cd admin
      wget http://moni.csi.hu/pub/glibc-2.3.1/daemontools-0.76.errno.patch
      cd daemontools-0.76
      patch -p1 < ../daemontools-0.76.errno.patch
      package/install
      
    • FreeBSD (follow standard install)

      Make sure you have the source tarball in /tmp, or download it.

      [root root]# mkdir -p /package
      [root root]# chmod 1755 /package/
      [root root]# cd /package/
      [root package]# tar xzf /tmp/daemontools-0.76.tar.gz
      [root package]# cd admin/daemontools-0.76
      [root daemontools-0.76]# package/install
      Linking ./src/* into ./compile...(many lines omitted)
      Creating /service...
      Adding svscanboot to inittab...
      init should start svscan now.
      [root root]#
      mkdir -p /package 
      chmod 1755 /package 
      cd /package 
      tar xzf /tmp/daemontools-0.76.tar.gz 
      cd admin/daemontools-0.76
      package/install
      
    • Debian

      [root ~]# apt-get install daemontools-installer
      [root ~]# build-daemontools
      
  2. Verify that svscan is running. If it is, you should see these two processes running:

    [root root]# ps -auxw | grep service
    root     13294  0.0  0.1  1352  272 ?        S    09:51   0:00 svscan /service
    root     13295  0.0  0.0  1304  208 ?        S    09:51   0:00 readproctitle service errors: .......................................
    [root root]#
  3. Install a script to grant non-root users permission to control daemontools services.

    [root root]# cp /tmp/openacs-5.9.0/packages/acs-core-docs/www/files/svgroup.txt /usr/local/bin/svgroup
    [root root]# chmod 755 /usr/local/bin/svgroupcp /tmp/openacs-5.9.0/packages/acs-core-docs/www/files/svgroup.txt /usr/local/bin/svgroup 
    chmod 755 /usr/local/bin/svgroup