Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 485134

Summary: net-nds/openldap - add systemd unit
Product: Gentoo Linux Reporter: Alexander Tsoy <alexander>
Component: [OLD] ServerAssignee: Gentoo LDAP project <ldap-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: leho, systemd
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 448882    
Attachments: slapd.service
slapd.service.conf
slapd.tmpfilesd
openldap-2.4.35.ebuild.patch

Description Alexander Tsoy 2013-09-16 21:39:06 UTC
Please add systemd unit.
Comment 1 Alexander Tsoy 2013-09-16 21:39:49 UTC
Created attachment 358822 [details]
slapd.service
Comment 2 Alexander Tsoy 2013-09-16 21:40:08 UTC
Created attachment 358824 [details]
slapd.service.conf
Comment 3 Alexander Tsoy 2013-09-16 21:40:36 UTC
Created attachment 358826 [details]
slapd.tmpfilesd
Comment 4 Alexander Tsoy 2013-09-16 21:40:56 UTC
Created attachment 358828 [details, diff]
openldap-2.4.35.ebuild.patch
Comment 5 Pacho Ramos gentoo-dev 2013-09-18 20:59:24 UTC
+*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)
+
Comment 6 Leho Kraav (:macmaN @lkraav) 2013-09-18 21:01:42 UTC
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?
Comment 7 Alexander Tsoy 2013-09-19 06:23:18 UTC
(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.
Comment 8 Alexander Tsoy 2013-09-19 09:07:21 UTC
(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.