Installation Part 2 - Fine Tuning
After we have installed OpenACS there are still a couple of things to do to ensure the smooth running of the system.
The first is to make sure that the AOLserver restarts automtatically on boot up.
The installation documentation describes 2 ways of doing this, either through inittab or by using daemon tools. I chose the latter as that was the on they favoured and I had not encountered it before.
The first step was to install the daemontools-installer
$ sudo apt-get install daemontools-installer
This pulled in one other package and then debconf told me what was going to happen. I pressed enter to OK it and the daemontools source was downloaded and I was told that I had to run the command build-daemontools to build the binary package.
# build-daemontools
This asked me to chose which format I wanted to use. I just accepted the default (fD) which was to build a debian package from the source. I said yes to the defaults for the rest except at the end where I said yes to purge the build-daemontools package. All very easy!
First I created the directory /service
$ sudo mkdir /service
Then I created the file /web/openacs/run and added a symlink in the /service directory as per the instructions in the OpenACS install manual. Create a file containing
#!/bin/sh
exec /usr/local/aolserver/bin/nsd-postgres -it /usr/local/aolserver/openacs.tcl -u nsadmin -g web
$ sudo chmod 700 /web/openacs/run
Now in order to get daemontools, or rather the programs that come with it (see dpkg -L daemontools) to work, I had to restart the system processes.
$ sudo init 1
The processes will shutdown and then I just type Ctrl-d to bring them up.You should see the nsd process being started up but you can confirm that using:
$ ps aux |grep nsd
For more information on setting up regular backups of your database, vacuuming postgres and installing the Search-OpenFTS driver read the installation document
