Skip to content

Commit

Permalink
Update docs to include interacting with Receptor via unix sockets (#1212
Browse files Browse the repository at this point in the history
)
  • Loading branch information
matoval authored Nov 20, 2024
1 parent 2c1da19 commit a2caa3e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/source/developer_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ Receptor is an open source project that lives at `ansible/receptor repository <h

See the :ref:`contributing:contributing` for more general details.

---------
Debugging
---------

^^^^^^^^^^^
Unix Socket
^^^^^^^^^^^
If you don't want to use receptorctl to control nodes, `socat <https://www.redhat.com/en/blog/getting-started-socat>` can be used to interact with unix sockets directly.

Example:

.. code-block:: bash
echo -e '{"command": "work", "subcommand": "submit", "node": "execution", "worktype": "cat", }\n"Hi"' | socat - UNIX-CONNECT:/tmp/control.sock
-------
Linters
-------
Expand Down

0 comments on commit a2caa3e

Please sign in to comment.