 |
Installing daemontools
cd /usr/ports/sysutils/daemontool
make install
Configuring daemontools to run and monitor AOLServer
- Download the openacs-4.tcl file from: http://www.orchardlabs.com/library/freebsd/openacs-4.tcl.txt
- Copy openacs-4.tcl.txt to /usr/local/aolserver/openacs-4.tcl and edit the file to fit your system config
chown -R nsadmin:nsadmin /usr/local/aolserver
mkdir /service
su - nsadmin
cd /usr/local/aolserver/servers/openacs-4/
- Downlaod run-aolserver.txt copy it to /usr/local/aolserver/servers/openacs-4/run.
(note that AOLServer 4.0 requires the -b option to be set at the command line)
chmod 700 /usr/local/aolserver/servers/openacs-4/run
exit
ln -s /usr/local/aolserver/servers/openacs-4 /service/openacs-4
- Download svscan.sh.txt and copy it to /usr/local/etc/rc.d/svscan.sh.
chmod 700 /usr/local/etc/rc.d/svscan.sh
After we reboot, svscan will automatically load up and monitor the /service directory. However, before we reboot, we need to populate the /web/openacs-4 directory. We'll grab the latest code from the CVS repository.
su -
mkdir -p /usr/web
ln -s /usr/local/web /web
cd /web
wget http://openacs.org/projects/openacs/download/download/openacs-4.6.3.tgz
tar xzvf openacs-4.6.3.tgz
mv openacs-4.6.3 openacs-4
chown -R nsadmin:nsadmin /web/openacs-4
Now we are ready to reboot. With luck, svscan, AOLServer and PostgreSQL will all load up.
The normal restart-aolserver script provided by aD will no longer work.
su - nsadmin
- You should download the new restart-aolsever script from http://www.orchardlabs.com/library/freebsd/restart-aolserver.txt. I put this file in /home/nsadmin/scripts and added that directory to my path.
exit
chown -R nsadmin:nsadmin /usr/local/aolserver/servers/openacs-4/supervise
su - nsadmin
restart-aolsever openacs-4
- AOLServer should restart
exit
Continue on with the qmail installation
|
 |
|