|
|
- ; The script /etc/init.d/etesync-server creates the second symlink in the
- ; following chain when starting (and deletes it when stopping the service):
- ; /etc/uwsgi/vassals/etesync-server.ini (letting the emperor load it on-demand)
- ; -> /var/etc/etesync-server/uwsgi.ini (in RAM)
- ; -> /etc/uwsgi/vassals/etesync-server.available (this file)
-
- [uwsgi]
- strict = true
-
- plugin = python
- manage-script-name = true
- chdir = /usr/share/etesync-server
- mount = /etesync=etesync_server.wsgi:application
- pidfile = /var/etc/etesync-server/master.pid
-
- enable-threads = true
- thunder-lock = true
- post-buffering = 8192
- harakiri = 60
- lazy-apps = true
- master = true
- idle = 600
-
- plugin = syslog
- ; disable-logging only affects req-logger:
- disable-logging = true
- log-format=%(method) %(uri) => return %(status) (%(rsize) bytes in %(msecs) ms)
- req-logger = syslog:etesync-server_req
-
- logger = etesync syslog:etesync-server_main
- ignore-sigpipe = true
- ignore-write-errors = true
-
- if-env = UWSGI_EMPEROR_FD
- ; the regular expression leaves for successful de/activation only one line each:
- 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.)
- end-if =
-
- if-not-env = UWSGI_EMPEROR_FD
- log-route = etesync .*
- vacuum = true
- socket = /var/run/etesync-server.socket
- end-if =
-
- chmod-socket = 660
- chown-socket = etesync:nogroup
- uid = etesync
- gid = nogroup
|