Mount the ShareThe system must have access to the share on acd-store. Checkout jtel-system-java-services RepositoryOn acd-store execute the following commands to checkout the repository: Code Block |
---|
su jtel
cd /srv/jtel/shared
git clone https://bitbucket.org/jtelgmbh/jtel-system-java-services.git |
Installation - on Linux ServerTo install the PRES role on a Linux server, proceed as follows on the acd-pres server. Java 17Install java 17 as follows: Code Block |
---|
apt-get -y install openjdk-17-jdk |
jtel-presence-aggregatorInstall jtel-presence-aggregator as follows: Code Block |
---|
# 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
sudochmod cp +x /home/jtel/jtel-presence-aggregator/systemd/jtel-presence-aggregator.service /etc/systemd/system
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 |
ConfigurationEdit 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 ServiceStart the service. Code Block |
---|
sudo systemctl start jtel-presence-aggregator.service |
|