Public bug reported: systemd socket activation (http://www.freedesktop.org/software/systemd/man/systemd.socket.html) was added to the service yaml some time ago. ListenStream= in the systemd unit supports both file-based sockets (start with '/') and abstract sockets (start with '@'). However, snappy build doesn't recognize '@' as a valid character.
$ cat ./meta/package.yaml name: foo version: 1.3 vendor: Some One <[email protected]> icon: meta/hello.png services: - name: bar start: bin/bar description: bar service socket: true listen-stream: '@foo_bar' $ snappy build . services description field 'ListenStream' contains illegal '@foo_bar' (legal: '^[A-Za-z0-9/. _#:-]*$') Couple of things here: a) the error message should say 'listen-stream', not 'ListenStream' because we want to reference the packaging yaml declaration, not the underlying systemd implementation b) '@' should be allowed in this regex. Based on the existing error regex, I suggest it be changed to: '^[/@][A-Za-z0-9/. _#:-]+$' ** Affects: snappy (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1509404 Title: snappy build does not allow abstract sockets with 'listen-stream' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snappy/+bug/1509404/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
