Skip to content
Snippets Groups Projects
Commit 7eee0908 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[LDAP] Start to add logrotate and rsyslog

parent d92721a7
No related branches found
No related tags found
No related merge requests found
FROM osixia/openldap:1.4.0
LABEL maintainer="quentinduchemin@tuta.io,bonnest@utc.fr"
RUN apt-get update && \
apt-get install rsyslog logrotate
# TODO ajouter un cron
COPY ./logrotate/openldap /etc/logrotate.d/openldap
RUN update-rc.d rsyslog defaults
ADD bootstrap /container/service/slapd/assets/config/bootstrap
ADD environment /container/environment/01-custom
/var/log/*.log {
missingok
notifempty
compress
weekly
rotate 10
size=50M
sharedscripts
postrotate
# OpenLDAP logs via syslog, restart syslog if running
/etc/init.d/rsyslog restart
endscript
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment