slapd.service missing
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | openldap (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
After upgrading to 15.04 i found that slapd (OpenLDAP) was not started (i have an instance running locally for development purposes). Then, I found that there is no such service available for systemd. I verified with apt-file (apt-file search slapd.service) which brought no results either.
As workaround I could start it using old "service" method.
| Arthur Schiwon (blizzz) wrote : | #1 |
| Martijn van Buijtene (tijnix) wrote : | #2 |
systemd is beeing called from /etc/init.d/slapd --> /lib/lsb/
Would be nice to implement a 'pure' systemd solution.
| Arthur Schiwon (blizzz) wrote : | #3 |
OK, with the file attached above, it does not work after restart and especially would not make slapd start at all. Removed it and use 'service' for now.
| Martin Pitt (pitti) wrote : | #4 |
"apt-get install slapd" works here on 15.04, it starts slapd:
$ systemctl status slapd
● slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
Loaded: loaded (/etc/init.d/slapd)
Active: active (running) since Wed 2015-04-22 10:59:45 BST; 7s ago
Docs: man:systemd-
CGroup: /system.
└─1507 /usr/sbin/slapd -h ldap:/// ldapi:/// -g openldap -u openldap -F /etc/ldap/slapd.d
Indeed there's no native unit, but that's fine -- the init.d script should work fine. What does "systemctl status slapd"? say after a fresh boot (and with custom slapd.service removed)?
| affects: | systemd (Ubuntu) → openldap (Ubuntu) |
| Changed in openldap (Ubuntu): | |
| status: | New → Incomplete |
| Launchpad Janitor (janitor) wrote : | #5 |
[Expired for openldap (Ubuntu) because there has been no activity for 60 days.]
| Changed in openldap (Ubuntu): | |
| status: | Incomplete → Expired |


tijnix on IRC provided me thankfully a systemd service file. I needed to change one thing for me to work, but seems to be good so far. But mind, this is barely tested. The file is attached.