slapd.service missing

Bug #1446125 reported by Arthur Schiwon on 2015-04-20
8
This bug affects 1 person
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 :

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.

Martijn van Buijtene (tijnix) wrote :

systemd is beeing called from /etc/init.d/slapd --> /lib/lsb/init-functions.d/40-systemd.

Would be nice to implement a 'pure' systemd solution.

Arthur Schiwon (blizzz) wrote :

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 :

"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-sysv-generator(8)
   CGroup: /system.slice/slapd.service
           └─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 :

[Expired for openldap (Ubuntu) because there has been no activity for 60 days.]

Changed in openldap (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers