[systemd-devel] Is a socket with Accept=yes and ListenFIFO impossible?

Steve Traylen steve.traylen at cern.ch
Thu Sep 5 10:37:57 UTC 2024


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 at .service
[Unit]
Description=email

[Service]
ExecStart=/usr/bin/mailx -s 'Testing from socket' steve at example.ch
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?


Motivation for was this i wanted to do perform a systemd-run of a 
command outputting to that socket to pipe it into mailx.




More information about the systemd-devel mailing list