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.
Install Daemontools
Red Hat
Make sure you have the source tarball in /tmp, or download it. (The -p flag in mkdir causes all implied directories in the path to be made as well.)
(Red Hat 9.0: put
#include <errno.h>
as the first line of /package/admin/daemontools-0.76/src/error.h. More information)
[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...
(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/daemontools-0.76
package/install
Debian
root:~# apt-get install daemontools-installer root:~# build-daemontools
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]#
Install a script to grant non-root users permission to control daemontools services.
[root@yourserver root]# cp /tmp/openacs-5.0.0a1/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.0a1/packages/acs-core-docs/www/files/svgroup.txt /usr/local/bin/svgroup
chmod 755 /usr/local/bin/svgroup