You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
2.0 KiB

  1. ; The script /etc/init.d/etebase creates the second symlink in the
  2. ; following chain when starting (and deletes it when stopping the service):
  3. ; /etc/uwsgi/vassals/etebase.ini (letting the emperor load it on-demand)
  4. ; -> /var/etc/etebase/uwsgi.ini (in RAM)
  5. ; -> /etc/uwsgi/vassals/etebase.available (this file)
  6. [uwsgi]
  7. strict = true
  8. plugin = python
  9. manage-script-name = true
  10. chdir = /usr/share/etebase
  11. mount = /etebase=etebase_server.wsgi:application
  12. pidfile = /var/etc/etebase/master.pid
  13. enable-threads = true
  14. thunder-lock = true
  15. post-buffering = 8192
  16. harakiri = 60
  17. lazy-apps = true
  18. master = true
  19. idle = 600
  20. plugin = syslog
  21. ; disable-logging only affects req-logger:
  22. disable-logging = true
  23. log-format=%(method) %(uri) => return %(status) (%(rsize) bytes in %(msecs) ms)
  24. req-logger = syslog:etebase_req
  25. logger = etebase syslog:etebase_main
  26. ignore-sigpipe = true
  27. ignore-write-errors = true
  28. if-env = UWSGI_EMPEROR_FD
  29. ; the regular expression leaves for successful de/activation only one line each:
  30. log-route = etebase ^(?!... Starting uWSGI |compiled with version: |os: Linux|nodename: |machine: |clock source: |pcre jit |detected number of CPU cores: |current working directory: |writing pidfile to |detected binary path: |chdir.. to |your processes number limit is |your memory page size is |detected max file descriptor number: |lock engine: |thunder lock: |uwsgi socket |setgid.. to |setuid.. to |Python version: |Python main interpreter initialized at |python threads support |your server socket listen backlog is limited to |your mercy for graceful operations on workers is |mapped |... Operational MODE: |... uWSGI is running in multiple interpreter mode ...|spawned uWSGI worker |mounting |WSGI app |announcing my loyalty to the Emperor...|workers have been inactive for more than |SIGINT/SIGQUIT received...killing workers...|worker |goodbye to uWSGI.)
  31. end-if =
  32. if-not-env = UWSGI_EMPEROR_FD
  33. log-route = etebase .*
  34. vacuum = true
  35. socket = /var/run/etebase.socket
  36. end-if =
  37. chmod-socket = 660
  38. chown-socket = etebase:nogroup
  39. uid = etebase
  40. gid = nogroup