Return the number of descriptors passed to this process by the init system as part of the socket-based activation logic. Wraps sd_listen_fds(3).
Returns True iff the descriptor refers to a FIFO or a pipe. Wraps sd_is_fifo(3).
Returns True iff the descriptor refers to a socket. Wraps sd_is_socket(3).
Constants for family are defined in the socket module.
Wraps sd_is_socket_unix(3).
Wraps sd_is_socket_inet(3).
Constants for family are defined in the socket module.
Returns True iff the descriptor refers to a POSIX message queue. Wraps sd_is_mq(3).
Send a message to the init system about a status change. Wraps sd_notify(3).
Return True iff this system is running under systemd. Wraps sd_booted(3).
Return a list of socket activated descriptors
Example:
(in primary window)
$ systemd-activate -l 2000 python3 -c \
'from systemd.daemon import listen_fds; print(listen_fds())'
(in another window)
$ telnet localhost 2000
(in primary window)
...
Execing python3 (...)
[3]