[zeromq-dev] [RFC] systemd socket activation for libzmq

Luca Boccassi luca.boccassi at gmail.com
Mon May 30 22:00:21 CEST 2016


On Mon, 2016-05-30 at 21:57 +0200, Michal Vyskocil wrote:
> Hi,
> 
> Awesome, the fact czmq handles that is good enough for me. Closed the
> request.

I've been using it for a while and it works ok for my use cases, but of
course feedback and improvements are more than welcome! Please do let me
know if there are any issues or if you have ideas for improvements :-)

Kind regards,
Luca Boccassi

> On Mon, 2016-05-30 at 21:14 +0200, Michal Vyskocil wrote:
> > Hi,
> >
> > Ale's thread about Setting privileges on a UNIX socket inspired me
> to
> > create small patch to libzmq adding automatic systemd socket
> > activation support.
> > https://github.com/zeromq/libzmq/pull/2015
> >
> > Right now the feature is fairly minimal - limited to ipc transport -
> > and tested manually using malamute broker. I would like to hear any
> > feedback. If you consider it as useful (or want to avoid dependency
> on
> > the most hated OSS software on the planet ;-)), please say so.
> 
> Hi,
> 
> That functionality is already implemented for both IPC and TCP
> sockets.
> 
> The low level library has the ZMQ_USE_FD socket option to pass a file
> descriptor, and the high level CZMQ has ZSYS_AUTO_USE_FD env var or
> zsys_set_auto_use_fd(1) function to let zmq automatically match
> endpoints to the corresponding sockets managed by systemd. As long as
> the metadata matches (eg: file path for IPC, address + port for TCP),
> it
> will just work out of the box.
> 
> Kind regards,
> Luca Boccassi
> 
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> 
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160530/723903bc/attachment.sig>


More information about the zeromq-dev mailing list