Mise à jour des fichiers de configuration pour SOC-SFRV2-REC01
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Socle supervision
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
Environment=JAVA_HOME=/usr/lib/jvm/java-1.17.5-openjdk-amd64
|
||||
Environment=PATH=/usr/lib/jvm/java-1.17.5-openjdk-amd64/bin:$PATH
|
||||
ExecStart=/home/socle_sup/socle_supervision/startup_sup.sh
|
||||
SuccessExitStatus=143
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
39
ConfigSysRepo/home/socle_sup/.profile
Normal file
39
ConfigSysRepo/home/socle_sup/.profile
Normal file
@@ -0,0 +1,39 @@
|
||||
# ~/.profile: executed by the command interpreter for login shells.
|
||||
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
|
||||
# exists.
|
||||
# see /usr/share/doc/bash/examples/startup-files for examples.
|
||||
# the files are located in the bash-doc package.
|
||||
|
||||
# the default umask is set in /etc/profile; for setting the umask
|
||||
# for ssh logins, install and configure the libpam-umask package.
|
||||
#umask 022
|
||||
|
||||
# if running bash
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
# include .bashrc if it exists
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
. "$HOME/.bashrc"
|
||||
fi
|
||||
fi
|
||||
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d "$HOME/bin" ] ; then
|
||||
PATH="$HOME/bin:$PATH"
|
||||
fi
|
||||
|
||||
# === BEGIN ANSIBLE MANAGED BLOCK socle_supervision ===
|
||||
alias socle_sup_start="systemctl --user start socle_supervision"
|
||||
alias socle_sup_stop="systemctl --user stop socle_supervision"
|
||||
alias socle_sup_restart="systemctl --user restart socle_supervision"
|
||||
alias socle_sup_status="systemctl --user status socle_supervision"
|
||||
export XDG_RUNTIME_DIR="/run/user/$UID"
|
||||
export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus"
|
||||
export JAVA_HOME="/usr/lib/jvm/java-1.17.0-openjdk-amd64"
|
||||
export PATH=$JAVA_HOME/bin:$PATH
|
||||
# === END ANSIBLE MANAGED BLOCK socle_supervision ===
|
||||
|
||||
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d "$HOME/.local/bin" ] ; then
|
||||
PATH="$HOME/.local/bin:$PATH"
|
||||
fi
|
||||
@@ -0,0 +1,33 @@
|
||||
# Infos de connexion a la base de donnees
|
||||
spring.datasource.url=jdbc:postgresql://10.106.101.147:5432/socle_sup
|
||||
spring.datasource.username=socle_sup
|
||||
spring.datasource.password=RT5G-p87SFR87
|
||||
server.servlet.context-path=/SFR_BT_ws_sup
|
||||
|
||||
# Configuration du pool
|
||||
spring.datasource.hikari.maximumPoolSize=5
|
||||
spring.datasource.hikari.connectionTimeout=20000
|
||||
#spring.datasource.hikari.minimumIdle=1
|
||||
#spring.datasource.hikari.idleTimeout=30000
|
||||
#spring.datasource.hikari.maxLifetime=2000000
|
||||
#spring.datasource.hikari.poolName=SocleSupervisionPool
|
||||
|
||||
# Context path de l'application
|
||||
# server.servlet.context-path=/module_supervision
|
||||
|
||||
# Port d'ecoute du serveur tomcat embarque
|
||||
server.port=8484
|
||||
|
||||
# Parametrage du niveau de LOG
|
||||
#logging.level.root=DEBUG
|
||||
|
||||
|
||||
# Configuration du module de supervision
|
||||
## Intervalle en minutes pour l'aggregation des donnees sur l'axe journalier (defaut : 30)
|
||||
# supervision.timeAxisStep=30
|
||||
## Clef secrete pour la validation du jeton JWT.
|
||||
## Cette clef doit etre identique e la valeur de propriete "supervision.authenticationSecret" du SOCLE (fichier socle.properties)
|
||||
# supervision.authenticationSecret=__SocleSupervisionJWTSecretKey
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
JAVA_OPTS=-Xmx2048M
|
||||
# The location of the java executable (executable file at $JAVA_HOME/bin/java)
|
||||
JAVA_HOME=/usr/lib/jvm/java-1.17.5-openjdk-amd64
|
||||
6
ConfigSysRepo/home/socle_sup/socle_supervision/startup_sup.sh
Executable file
6
ConfigSysRepo/home/socle_sup/socle_supervision/startup_sup.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
export JAVA_HOME=/usr/lib/jvm/java-1.17.5-openjdk-amd64
|
||||
export PATH=/usr/lib/jvm/java-1.17.5-openjdk-amd64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
|
||||
|
||||
/home/socle_sup/socle_supervision/socle-supervision.jar >> /home/socle_sup/logs/socle-supervision.log
|
||||
Reference in New Issue
Block a user