#******************************************************************************
#				ARCHI-CLARIN
#		  		   ver 1.0
#			       INSTALL BUFFER
#
# NOTE: use with: install-buffer install
#******************************************************************************
#Version
#copy ver to /home/SYSBUF
cp ver /home/SYSBUF/version
#
#SERVER-N
#copy files to chn21 
cp SERVER-N/mserverN /home/chn21/mserverN
cp SERVER-N/msrvNd /home/chn21/msrvNd
cp SERVER-N/runserverN /home/chn21/runserverN
#
#SERVER-F
#copy files to chn22
cp SERVER-F/mserverF /home/chn22/mserverF 
cp SERVER-F/msrvFd /home/chn22/msrvFd
cp SERVER-F/runserverF /home/chn22/runserverF
#
#SERVER-S
#copy files to /home/SYSBUF
cp SERVER-S/mserverS /home/SYSBUF/mserverS
cp SERVER-S/runserverS /home/SYSBUF/runserverS
cp SERVER-S/SERVER_ID /home/SYSBUF/SERVER_ID
#
#MAIN-LOOP
#copy files to /home/SYSBUF/
cp MAIN-LOOP/mloopBUF /home/SYSBUF/mloopBUF
cp MAIN-LOOP/mountRAM /home/SYSBUF/mountRAM
cp MAIN-LOOP/md5 /home/SYSBUF/md5
cp MAIN-LOOP/mk_image /home/SYSBUF/mk_image
cp MAIN-LOOP/regen /home/SYSBUF/regen
cp SERVER-F/buf.config /home/SYSBUF/buf.config
#
#DAEMON MAIN-LOOP
cp AT_BOOT/mloopBd /etc/init.d/mloopBd
#
#
#add main-loop as service to the list of services
chkconfig --add mloopBd
chkconfig --level 35 mloopBd on



