Identifies whether the passed file descriptor is a socket. If family and
type are supplied, they must match as well. See Listening for listening
check parameters.
Identifies whether the passed file descriptor is an Internet socket. If
family, type, and/or port are supplied, they must match as well. See
Listening for listening check parameters.
Identifies whether the passed file descriptor is an AF_UNIX socket. If type
are supplied, it must match as well. For normal sockets, leave the path set
to None; otherwise, pass in the full socket path. See Listening for
listening check parameters.
Returns a struct that can iterate over the passed file descriptors. Removes the
$LISTEN_FDS and $LISTEN_PID file descriptors from the environment if
unset_environment is true
Notifies systemd that daemon state has changed. state is made up of a set
of key-value pairs. See sd-daemon.h for details. Some of the most common
keys are defined as STATE_* constants in this module. Returns true if
systemd was contacted successfully.