fix Bug 65410 - Disable ds:metrics service when METRICS_ENABLED=false (#726)
This commit is contained in:
parent
3fe861b1a4
commit
12eb20a61b
2 changed files with 4 additions and 2 deletions
|
|
@ -9,5 +9,5 @@ stdout_logfile_maxbytes=0
|
|||
stderr_logfile=/var/log/COMPANY_NAME/documentserver/metrics/err.log
|
||||
stderr_logfile_backups=0
|
||||
stderr_logfile_maxbytes=0
|
||||
autostart=true
|
||||
autorestart=true
|
||||
autostart=false
|
||||
autorestart=false
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ DS_LOG_DIR="${LOG_DIR}/documentserver"
|
|||
LIB_DIR="/var/lib/${COMPANY_NAME}"
|
||||
DS_LIB_DIR="${LIB_DIR}/documentserver"
|
||||
CONF_DIR="/etc/${COMPANY_NAME}/documentserver"
|
||||
SUPERVISOR_CONF_DIR="/etc/supervisor/conf.d"
|
||||
IS_UPGRADE="false"
|
||||
|
||||
ONLYOFFICE_DATA_CONTAINER=${ONLYOFFICE_DATA_CONTAINER:-false}
|
||||
|
|
@ -275,6 +276,7 @@ update_statsd_settings(){
|
|||
${JSON} -I -e "this.statsd.host = '${METRICS_HOST}'"
|
||||
${JSON} -I -e "this.statsd.port = '${METRICS_PORT}'"
|
||||
${JSON} -I -e "this.statsd.prefix = '${METRICS_PREFIX}'"
|
||||
sed -i -E "s/(autostart|autorestart)=.*$/\1=${METRICS_ENABLED}/g" ${SUPERVISOR_CONF_DIR}/ds-metrics.conf
|
||||
}
|
||||
|
||||
update_db_settings(){
|
||||
|
|
|
|||
Loading…
Reference in a new issue