Hello all

I have the following socket unit:

[Unit]
Description=unix sock

[Socket]
ListenStream=@foo/%i
Backlog=128
Service=foo@%i.service

[Install]
Alias=foo@dev1.socket
Alias=sockets.target.wants/foo@dev1.socket
Alias=foo@dev2.socket
Alias=sockets.target.wants/foo@dev2.socket
Alias=foo@dev3.socket
Alias=sockets.target.wants/foo@dev3.socket

so that I can configure a socket per device, where each device is
handled by a separate service instance.

However, ListenStream= doesn't seem to understand %i, because it
listens on @foo/%i (no substitution), causing foo@dev2.socket and
foo@dev3.socket to fail on startup.

Regards

Albert
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to