Commit d2edd779 authored by Kelson's avatar Kelson
Browse files

Increase count of available kiwix-serve thread from 4 to 8

parent 429516fb
......@@ -4,7 +4,7 @@ Description=Kiwix server
[Service]
User={{ username }}
Group={{ group }}
ExecStart=/bin/sh -c "ls {{ zim_path }}/*.zim && /usr/local/bin/kiwix-serve --port=8002 $(ls {{ zim_path }}/*.zim) || /usr/local/bin/kiwix-serve --port=8002 --library {{ zim_path }}/library.xml"
ExecStart=/bin/sh -c "ls {{ zim_path }}/*.zim && /usr/local/bin/kiwix-serve --threads=8 --port=8002 $(ls {{ zim_path }}/*.zim) || /usr/local/bin/kiwix-serve --port=8002 --library {{ zim_path }}/library.xml"
Restart=always
KillSignal=SIGQUIT
......
  • seems the number of threads is only increased for *.zim not for library.xml

  • library.xml is used only when there is no zim so kiwix-serve can start (even if serving nothing).

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment