Please add systemd unit.
Created attachment 358822 [details] slapd.service
Created attachment 358824 [details] slapd.service.conf
Created attachment 358826 [details] slapd.tmpfilesd
Created attachment 358828 [details, diff] openldap-2.4.35.ebuild.patch
+*openldap-2.4.35-r1 (18 Sep 2013) + + 18 Sep 2013; Pacho Ramos <pacho@gentoo.org> +files/slapd.service, + +files/slapd.service.conf, +files/slapd.tmpfilesd, +openldap-2.4.35-r1.ebuild: + Add unit file (#485134 by Alexander Tsoy) +
I challenged myself with trying socket activation. Gave up soon enough :) It seemed to work, but had some funky behavior afterwards. I know this just went live, but any thoughts on socket?
(In reply to Leho Kraav (:macmaN @lkraav) from comment #6) > I challenged myself with trying socket activation. > > Gave up soon enough :) It seemed to work, but had some funky behavior > afterwards. > > I know this just went live, but any thoughts on socket? Most likely socket activation will not work: 1. Only one instance of slapd using the same database dir can be launched, so Accept=yes (inetd-like sockt activation) will not work (ok, will work only for 1 connection :) ). 2. Accept=false require a special support from the daemon side. I doubt that slapd support this.
(In reply to Alexander Tsoy from comment #7) > 1. Only one instance of slapd using the same database dir can be launched, > so Accept=yes (inetd-like sockt activation) will not work (ok, will work > only for 1 connection :) ). More important reason: there is no option to make slapd listen on stdin.