Re: feature request: support specifying Unix socket with systemd directive OpenFile=

Erik Sjölund via curl-users <[email protected]>
Newsgroups gmane.comp.web.curl.general
Message-ID <CAB+1q0R17BPmLDuSo-0C3FhZTUsFE-xAxcmNis7q27djygGN0Q@mail.gmail.com>
On Thu, Jun 22, 2023 at 5:53 PM Dan Fandrich via curl-users
<[email protected]> wrote:
> How about just doing this like inetd and passing the fd in as stdin?

Unfortunately, it's not possible here. File descriptors originating
from OpenFile= are passed by systemd as file descriptor number 3 or
higher.
Quote:
"The first file descriptor may be found at file descriptor number 3
(i.e. SD_LISTEN_FDS_START), the remaining descriptors follow at 4, 5,
6, …, if any."
from
https://www.freedesktop.org/software/systemd/man/sd_listen_fds.html

Quote:
"See sd_listen_fds(3) for more details on how to retrieve these file
descriptors."
from
https://www.freedesktop.org/software/systemd/man/systemd.service.html#OpenFile=

Erik
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.