[systemd-devel] systemd-socket-proxyd & slapd

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Wed Jul 16 07:29:07 PDT 2014


On Wed, Jul 16, 2014 at 03:45:53PM +0300, Suvendu Mitra wrote:
>  want to start slapd with socket activation via 'systemd-socket-proxyd' ,
> 
> I can see that slapd is listening to port 400 & sytemd create socket at
> 401. But ldapsearch doesn't work with port 401. Any help !!
> 
> -------------------
> 1.
> $ cat proxy-to-directory-400.socket
> [Socket]
> ListenStream=401
> 
> [Install]
> WantedBy=sockets.target
> ------------------------------
> 2.
> $ cat proxy-to-directory-400.service
> [Unit]
> Requires=vgp.master-ldap-400.
> service
> After=vgp.master-ldap-400.service
I think it is better not to use dots in the name.

> [Service]
> ExecStart=/usr/lib/systemd/systemd-socket-proxyd ${HOSTNAME}:400
> PrivateTmp=yes
> PrivateNetwork=yes
This won't work, since proxyd now cannot connect to port 400.

Zbyszek


More information about the systemd-devel mailing list