Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485134 - net-nds/openldap - add systemd unit
Summary: net-nds/openldap - add systemd unit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2013-09-16 21:39 UTC by Alexander Tsoy
Modified: 2013-09-19 09:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
slapd.service (slapd.service,288 bytes, text/plain)
2013-09-16 21:39 UTC, Alexander Tsoy
Details
slapd.service.conf (slapd.service.conf,443 bytes, text/plain)
2013-09-16 21:40 UTC, Alexander Tsoy
Details
slapd.tmpfilesd (slapd.tmpfilesd,94 bytes, text/plain)
2013-09-16 21:40 UTC, Alexander Tsoy
Details
openldap-2.4.35.ebuild.patch (openldap-2.4.35.ebuild.patch,1.92 KB, patch)
2013-09-16 21:40 UTC, Alexander Tsoy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.