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
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
|
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
$ 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 -