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.1 KiB

  1. ; The script /etc/init.d/etesync-server creates the second symlink in the
  2. ; following chain when starting (and deletes it when stopping the service):
  3. ; /etc/uwsgi/vassals/etesync-server.ini (letting the emperor load it on-demand)
  4. ; -> /var/etc/etesync-server/uwsgi.ini (in RAM)
  5. ; -> /etc/uwsgi/vassals/etesync-server.available (this file)
  6. [uwsgi]
  7. strict = true
  8. plugin = python
  9. manage-script-name = true
  10. chdir = /usr/share/etesync-server
  11. mount = /etesync=etesync_server.wsgi:application
  12. pidfile = /var/etc/etesync-server/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:etesync-server_req
  25. logger = etesync syslog:etesync-server_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 = etesync ^(?!... 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 = etesync .*
  34. vacuum = true
  35. socket = /var/run/etesync-server.socket
  36. end-if =
  37. chmod-socket = 660
  38. chown-socket = etesync:nogroup
  39. uid = etesync
  40. gid = nogroup