Can we get eyes on LP: #1612440?
As far as I recall there is code in snapd that handles socket activation, but many moons ago it was decided that the syntax needed rework so we never exposed it in snapcraft.
The aforementioned bug proposes what follows:
The current implementation in snapd is done with two options on the app:
- socket (boolean, requires listen-stream)
- listen-stream (the systemd listen-stream string)
This should probably be changed to something more like: