Re: Is a socket with Accept=yes and ListenFIFO impossible?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Do, 05.09.24 12:37, Steve Traylen (steve.traylen@xxxxxxx) wrote:

> Was trying to set up a trivial socket and service to process multiple
> inputs:
>
> # Socket emailoutput.socket
> [Unit]
> Description=Send email via a socket.
>
> [Socket]
> Accept=yes
> ListenFIFO=/run/emailoutput.socket
>
> # Service emailoutput@.service
> [Unit]
> Description=email
>
> [Service]
> ExecStart=/usr/bin/mailx -s 'Testing from socket' steve@xxxxxxxxxx
> StandardInput=socket
>
>
> Starting the socket always produces: "Unit configured for accepting sockets,
> but sockets are non-accepting. Refusing"
>
> Switching the socket to  "ListenStream=127.0.0.1:9999" then everything works
> I can netcat files into the network socket.
> Is it impossible to to Accept=yes with ListenFIFO?

Yes. FIFOs do not know any concept of connections. Instead each FIFO
is just a single ring buffer and any writer to it will end up writing
into the same ring buffer.

Lennart

--
Lennart Poettering, Berlin



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux