added WORKERS_COUNT variable to manage WoWorkersCount (usefull for ActiveSync)

This commit is contained in:
Tophe 2018-09-14 20:29:36 +02:00
parent c5b642ab4f
commit 711b2fc570

View file

@ -2,6 +2,8 @@
source /usr/local/bin/common.sh
WORKERS_COUNT=${WORKERS_COUNT:-15}
for conf in $(printenv| grep -i SOGO_ | cut -d= -f1);do
update_conf "${conf:5}" "${!conf}"
done
@ -13,4 +15,4 @@ if [[ -n ${MYSQL_SERVER//[[:blank:]]/} ]]; then
fi
log_info "Launching SOGo"
/usr/sbin/sogod -WONoDetach YES -WOPort 20000 -WOLogFile - -WOPidFile /tmp/sogo.pid
/usr/sbin/sogod -WOWorkersCount ${WORKERS_COUNT} -WONoDetach YES -WOPort 20000 -WOLogFile - -WOPidFile /tmp/sogo.pid