From b04c8c83e8d5670b0923c7cd7d6ea622b0187289 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Fri, 15 Mar 2013 19:01:10 -0400 Subject: systemd-python: add systemd.daemon wrapping sd-daemon Please see the documentation (e.g. pydoc3 systemd.daemon) for full description. As usual, systemd._daemon wraps the raw interface, while systemd.daemon provides the more pythonic API. sd_listen_fds, sd_booted, sd_is_fifo, sd_is_socket, sd_is_socket_unix, sd_is_socket_inet, sd_is_mq, and SD_LISTEN_FDS_START are currently wrapped. --- src/python-systemd/docs/daemon.rst | 16 ++++++++++++++++ src/python-systemd/docs/index.rst | 1 + 2 files changed, 17 insertions(+) create mode 100644 src/python-systemd/docs/daemon.rst (limited to 'src/python-systemd/docs') diff --git a/src/python-systemd/docs/daemon.rst b/src/python-systemd/docs/daemon.rst new file mode 100644 index 0000000000..72280ca2f0 --- /dev/null +++ b/src/python-systemd/docs/daemon.rst @@ -0,0 +1,16 @@ +`systemd.daemon` module +======================= + +.. automodule:: systemd.daemon + :members: + :undoc-members: + :inherited-members: + + .. autoattribute:: systemd.daemon.LISTEN_FDS_START + + .. autofunction:: _listen_fds + .. autofunction:: _is_fifo + .. autofunction:: _is_socket + .. autofunction:: _is_socket_unix + .. autofunction:: _is_socket_inet + .. autofunction:: _is_mq diff --git a/src/python-systemd/docs/index.rst b/src/python-systemd/docs/index.rst index f04d5a181c..8a94d0750b 100644 --- a/src/python-systemd/docs/index.rst +++ b/src/python-systemd/docs/index.rst @@ -13,6 +13,7 @@ Contents: journal id128 + daemon Indices and tables ================== -- cgit v1.2.3-54-g00ecf