[systemd-devel] Interactive socket activated service?
Dmitry Golubovsky
golubovsky at gmail.com
Thu Oct 11 06:56:22 PDT 2012
Mantas,
On Thu, Oct 11, 2012 at 9:46 AM, Mantas Mikulėnas <grawity at gmail.com> wrote:
> When you have "Accept=false", systemd only passes your program the
> listener socket, which is not connected to any client – systemd
> expects the program to call accept() itself for every client.
OK, this explanation is clear, although I was under impression that
with accept=false I can just use stdin/stdout for a socket (just like
it works with socat)
> If you want inetd-style socket activation, with the program's
> stdin/stdout being connected to the client directly, use
> "Accept=true".
And then perhaps with MaxConnections=1 to simulate a singleton service
(which I need).
Thanks. I'll try this.
--
Dmitry Golubovsky
Anywhere on the Web
More information about the systemd-devel
mailing list