ltb-project / openldap-deb

Debian packages for OpenLDAP
http://ltb-project.org/wiki/documentation/openldap-deb
GNU General Public License v3.0
14 stars 13 forks source link

No log file after install until rsyslog is restarted #86

Closed soisik closed 2 years ago

soisik commented 2 years ago

Hi,

After installing and configuring openldap-ltb 2.5.9.1 on ubuntu 20.04, the log file openldap.log was not created in /var/log/. Configuration seemed fine in rsyslog.conf. After restarting rsyslog using systemctl restart rsyslog, the log file did appear as expected.

davidcoutadeur commented 2 years ago

Hello,

That's because *syslog is not reloaded/restarted.

However, the logrotate is doing the job, so at a moment, the log will start working.

Anyway, a fix is interesting to immediately restart *syslog.

TODO:

Thanks for the report.

davidcoutadeur commented 2 years ago

Done in 79ee938

As it can be any implementation of syslog (syslog, rsyslog, syslog-ng,...), I have made a simple fix: Check if rsyslog is present and started -> if so, restart it after adding openldap rsyslog configuration