Closed fred49 closed 2 years ago
Hi, The best way would be to call the slapd-cli script from postinst.
-> TODO
Hi, sorry but you can't use your solution because you still have to enable your service. Cf current lines of code :
systemctl enable slapd || exit $?
systemctl start slapd || exit $?
Hi @fmartin-linagora The solution I propose:
if systemd available: keep the current behaviour else: start process with slapd-cli, but don't set "start on boot"
As discussed, the better for docker is not to start OpenLDAP. So:
if systemd available: keep the current behaviour
else: do nothing (don't start on boot, don't start slapd-cli now)
Also, another improvement is to check the presence of rsyslog before configuring the logs.
Error reproduced installing with docker:
FROM debian:stable
openldap-ltb
openldap-ltb-contrib-overlays
openldap-ltb-mdb-utils
openldap-ltb-ppm
-> Investigate the problem -> see if this is specific to debian, else reopen issue in rpm repository
New tests on docker + OpenLDAP 2.5 show no problem
See #71
Hi, I'm trying to build a docker image using OpenLDAP LTB project and I have an issue with the postinst script. It requires to have systemctl installed. I don't want to compile openldap, I want reuse Debian packages even if it is no perfect. So is it possible to test if systemctl exists and then call it ?
Fred.