Mount the Share

The system must have access to the share on acd-store.

Checkout jtel-system-java-services Repository

On acd-store execute the following commands to checkout the repository:

su jtel
cd /srv/jtel/shared
git clone https://bitbucket.org/jtelgmbh/jtel-system-java-services.git

Installation - on Linux Server

To install the PRES role on a Linux server, proceed as follows on the acd-pres server.

Java 17

Install java 17 as follows:

apt-get -y install openjdk-17-jdk

jtel-presence-aggregator

Install jtel-presence-aggregator as follows:

# Copy software, create directories, and make sure correct execution rights
cd /home/jtel
cp -r /home/jtel/shared/jtel-system-java-services/deploy/presence-aggregator jtel-presence-aggregator
mkdir /home/jtel/jtel-presence-aggregator/log
chown -R jtel:jtel jtel-presence-aggregator
chmod +x /home/jtel/jtel-presence-aggregator/systemd/jtel-presence-aggregator
chmod +x /home/jtel/jtel-presence-aggregator/updatepa.sh

# Install systemd service
sudo cp jtel-presence-aggregator/systemd/jtel-presence-aggregator.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable jtel-presence-aggregator.service

# Link update script
cd /usr/local/bin
sudo ln -s /home/jtel/jtel-presence-aggregator/updatepa.sh
cd

Configuration

Edit the configuration file /home/jtel/jtel-presence-aggregator/config/jtel-presence-aggregator.xml and check database access passwords and hosts etc. are correct.

Edit the startup file /home/jtel/jrest/systemd/jtel-presence-aggregator and check the java directory is correct (the correct java version).

Edit the logging configuration file /home/jtel/jtel-presence-aggregator/config/log4j2.xml and make sure it points to the required logging directory.

Start Service

Start the service. 

sudo systemctl start jtel-presence-aggregator.service
  • No labels