Skip to content

Installation of multiple GMP instances

Gianluca Sabella edited this page Mar 23, 2016 · 8 revisions

Introduction

GMP is usually installed in:

/usr/local/gmp/

For example, let's consider the case to have a second instance installed in:

/usr/local/newgmp/

Once copied the new folder, the new directory shall be configured in the following files:

bin/dbcron
bin/dbcron_launcher
bin/downloader
bin/downloader_launcher
bin/downloadmanager
bin/downloadmanager_launcher
bin/finaliser
bin/finaliser_launcher
bin/gmp-env
bin/gmp-service
bin/libQueue
bin/libQueue_launcher
bin/pluginDhus
bin/pluginDhus_launcher
bin/pluginoda
bin/pluginoda_launcher
os-configuration/gmp-crond
os-configuration/gmp-httpd.conf
os-configuration/gmp-logrotated

Update prjfolder variable

For the files:

bin/dbcron
bin/dbcron_launcher
bin/downloader
bin/downloader_launcher
bin/downloadmanager
bin/downloadmanager_launcher
bin/finaliser
bin/finaliser_launcher
bin/gmp-env
bin/gmp-service
bin/libQueue
bin/libQueue_launcher
bin/pluginDhus
bin/pluginDhus_launcher
bin/pluginoda
bin/pluginoda_launcher

update the line with the prjfolder variable as in the example:

# diff /usr/local/gmp/bin/dbcron /usr/local/newgmp/bin/dbcron
3c3
< prjfolder=/usr/local/gmp/
---
> prjfolder=/usr/local/newgmp/

To check that all files have been properly update run the command:

# grep prjfolder= *

Update PRJ variable in gmp-service

Update File Handlers in gmp-env

Deploy OS configuration

Configure Database access

Go in the lib folder and run the configure script:

cd /usr/local/newgmp/lib
./configure.py --reconfigure

and set the reference for the new db; the new db will be created at the first connection.