Skip to content

Commit

Permalink
Merge pull request #318 from btall/btall/example-spooler-external
Browse files Browse the repository at this point in the history
Add a example on the usage of spooler-external. Thx @ultrabug.
  • Loading branch information
unbit committed Jul 13, 2016
2 parents f69d1aa + ff15f13 commit 5c025f7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Spooler.rst
Expand Up @@ -176,6 +176,23 @@ To add an external spooler directory use the ``--spooler-external <directory>``

The spooler locking subsystem will avoid any messes that you might think could occur.

.. code-block:: ini
[uwsgi]
spooler-external = /var/spool/uwsgi/external
...
.. code-block:: py
# python
import uwsgi
uwsgi.spool({'foo': 'bar', 'spooler': '/var/spool/uwsgi/external'})
# or
uwsgi.spool(foo='bar', spooler='/var/spool/uwsgi/external')
# for python3 use bytes instead of strings !!!
Networked spoolers
------------------

Expand Down

0 comments on commit 5c025f7

Please sign in to comment.