yum install –y gccThen create folder setup and wget source code:
mkdir -p /package chmod 1755 /package cd /package wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz tar -xzvf daemontools-0.76.tar.gz rm daemontools-0.76.tar.gzFinally, install Daemontools:
cd /package cd admin/daemontools-0.76 vi src/conf-ccAdd this line after gcc -02
-include /usr/include/errno.hThen save it and type what’s below
./package/installCheck if your vi /etc/inttab contains svscanboot. For example:
SV:123456:respawn:/command/svscanbootCreate service directory for your AOLserver instance and call it aolserver
mkdir /service/aolserverOnce created you'll also see supervise directory under it. Change to the new directory (aolserver)
cd /service/aolserverNow use ‘vi run’ (without the quotes) to create a script called ‘run’ while in the aolserver directory
vi runCopy and paste the code below into your ‘run’ file
#!/bin/sh exec /usr/local/aolserver451_rc2/bin/nsd -it /web/projop/etc/config.tcl -u projop -g projop*Note: In order to paste you must first tap the ‘i’ key (insert) *Note: Once pasted, you must hit the ‘Esc’ key and then ‘:’ (colon) then type ‘wq’ (all without the quotes, in order to save). Make run script executable:
chmod +x runExecute arun script and confirm that it starts your server
./runThen cd back to root and issue these lines:
echo "start on runlevel [12345]" > /etc/init/svscan.conf echo "respawn" >> /etc/init/svscan.conf echo "exec /command/svscanboot" >> /etc/init/svscan.confIssue these command:
initctl reload-configuration initctl start svscanThat’s it. Now you can check it using command below:
ps -ef | grep svscan
Calle Aprestadora 19, 12o-2a
08902 Hospitalet de Llobregat (Barcelona)
Spain
Tel Europe: +34 609 953 751
Tel US: +1 415 200 2465
Mail: info@project-open.com