[GH-ISSUE #281] Add option to disable CPU-heavy tasks on startup #152

Closed
opened 2026-02-26 09:37:03 +03:00 by kerem · 2 comments
Owner

Originally created by @jkumeboshi on GitHub (Aug 15, 2020).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/281

Docker entrypoint /app/ds/run-document-server.sh calls the following script:
/usr/bin/documentserver-generate-allfonts.sh

that script calls 2 heavy tasks:
allfontsgen (about 5 minutes on my slow VM)
allthemesgen (about 20 minutes on my slow VM)

(question: Can the Document server be used while that tasks are running in background?)

Are that tasks really required to run at each startup?
Would it be possible to disable it in some way, such as using environment variables o startup switches?
I think that they shall be run just once and re-run again only if the themes or the fonts are updated (so, only if I update the docker image).

Originally created by @jkumeboshi on GitHub (Aug 15, 2020). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/281 Docker entrypoint /app/ds/run-document-server.sh calls the following script: /usr/bin/documentserver-generate-allfonts.sh that script calls 2 heavy tasks: allfontsgen (about 5 minutes on my slow VM) allthemesgen (about 20 minutes on my slow VM) (question: Can the Document server be used while that tasks are running in background?) Are that tasks really required to run at **each** startup? Would it be possible to disable it in some way, such as using environment variables o startup switches? I think that they shall be run just once and re-run again only if the themes or the fonts are updated (so, only if I update the docker image).
kerem 2026-02-26 09:37:03 +03:00
Author
Owner

@ShockwaveNN commented on GitHub (Aug 15, 2020):

@jkumeboshi Hi, yeah, I agree with you

@agolybev can we add option to Docker envs to disable those task on startup?

<!-- gh-comment-id:674369598 --> @ShockwaveNN commented on GitHub (Aug 15, 2020): @jkumeboshi Hi, yeah, I agree with you @agolybev can we add option to Docker envs to disable those task on startup?
Author
Owner

@teacupx commented on GitHub (Aug 24, 2020):

+1 for adding the option to disable the task on startup

<!-- gh-comment-id:679411248 --> @teacupx commented on GitHub (Aug 24, 2020): +1 for adding the option to disable the task on startup
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#152
No description provided.