Fixes exit procedure. ()

This commit is contained in:
Pierre Ozoux 2020-09-10 16:02:20 +02:00 committed by GitHub
parent 380ac3e227
commit 1956f98c1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View file

@ -1,5 +1,11 @@
#!/bin/bash
function clean_exit {
/usr/bin/documentserver-prepare4shutdown.sh
}
trap clean_exit SIGTERM
# Define '**' behavior explicitly
shopt -s globstar
@ -522,4 +528,5 @@ service nginx start
documentserver-generate-allfonts.sh ${ONLYOFFICE_DATA_CONTAINER}
documentserver-static-gzip.sh ${ONLYOFFICE_DATA_CONTAINER}
tail -f /var/log/${COMPANY_NAME}/**/*.log
tail -f /var/log/${COMPANY_NAME}/**/*.log &
wait $!