FS#38408 - [openldap] Does not create /run/openldap

Attached to Project: Arch Linux
Opened by Chris AQD (chrisq) - Tuesday, 07 January 2014, 18:16 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 21 June 2014, 17:32 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
Package openldap does not create directory /run/openldap, causing slapd to fail starting as it can't create its .pid file.

Additional info:
* package version(s): 2.4.38-1
* config and/or log files etc.
Jan 08 02:44:27 puppeteer slapd[1469]: unable to open pid file "/run/openldap/slapd.pid": 2 (No such file or directory)
Jan 08 02:44:27 puppeteer slapd[1469]: DIGEST-MD5 common mech free
Jan 08 02:44:27 puppeteer slapd[1469]: slapd stopped.
Jan 08 02:44:27 puppeteer slapd[1469]: connections_destroy: nothing to destroy.
Jan 08 02:44:27 puppeteer systemd[1]: slapd.service: control process exited, code=exited status=1
Jan 08 02:44:27 puppeteer systemd[1]: Failed to start OpenLDAP server daemon.

* Solution proposed from IRC:
18:54] < grawity> | chrisq: yes, it's a packaging bug – it should be running `systemd-tmpfiles --create slapd.conf` after installation


Steps to reproduce:
1. install openldap
2. start openldap
This task depends upon

Closed by  Dave Reisner (falconindy)
Saturday, 21 June 2014, 17:32 GMT
Reason for closing:  Fixed
Comment by Dave Reisner (falconindy) - Wednesday, 08 January 2014, 14:22 GMT
Minor nitpick. Its not that the directory isn't created, its that a reboot is "required" before it exists. The tmpfiles command grawity gave you makes this happen at install time to close the gap.
Comment by Aleksei (yupi) - Saturday, 21 June 2014, 15:56 GMT
  • Field changed: Percent Complete (100% → 0%)
Just installed openldap. Still the same problem. The tmp dir is not created after install and Systemd cannot start service.
Comment by Dave Reisner (falconindy) - Saturday, 21 June 2014, 17:32 GMT
Looked at the install scriptlet, and this *does* do the right thing.

$ bsdtar xOf /pkg/bin/openldap-2.4.39-1-x86_64.pkg.tar.xz .INSTALL | grep tmpfiles
systemd-tmpfiles --create slapd.conf

And slapd.conf contains:

D /run/openldap 0755 ldap ldap -

Loading...