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@yourserver root]# mkdir -p /package
      [root@yourserver root]# chmod 1755 /package/
      [root@yourserver root]# cd /package/
      [root@yourserver package]# tar xzf /tmp/daemontools-0.76.tar.gz
      [root@yourserver package]# cd admin/daemontools-0.76/
      [root@yourserver daemontools-0.76]# package/install
      Linking ./src/* into ./compile...
      
      Creating /service...
      Adding svscanboot to inittab...
      init should start svscan now.
      [root@yourserver 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

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

      [root@yourserver root]# mkdir -p /package
      [root@yourserver root]# chmod 1755 /package/
      [root@yourserver root]# cd /package/
      [root@yourserver package]# tar xzf /tmp/daemontools-0.76.tar.gz
      [root@yourserver package]# cd admin
      [root@yourserver admin]# wget http://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 moni.csi.hu[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@yourserver admin]# cd daemontools-0.76
      [root@yourserver daemontools-0.76]# patch -p1 < ../daemontools-0.76.errno.patch
      [root@yourserver daemontools-0.76]# package/install
      Linking ./src/* into ./compile...(many lines omitted)
      Creating /service...
      Adding svscanboot to inittab...
      init should start svscan now.
      [root@yourserver 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
    • 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@yourserver 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@yourserver root]#
  3. Install a script to grant non-root users permission to control daemontools services.

    [root@yourserver root]# cp /tmp/openacs-5.0.0a4/packages/acs-core-docs/www/files/svgroup.txt /usr/local/bin/svgroup
    [root@yourserver root]# chmod 755 /usr/local/bin/svgroup
    
    cp /tmp/openacs-5.0.0a4/packages/acs-core-docs/www/files/svgroup.txt /usr/local/bin/svgroup 
    chmod 755 /usr/local/bin/svgroup
View comments on this page at openacs.org