root / openldap-rpm / trunk / SOURCES / openldap.logrotate
History | View | Annotate | Download (504 Bytes)
| 1 | #================================================= |
|---|---|
| 2 | # Logrotate script for OpenLDAP |
| 3 | # |
| 4 | # Provided by LTB-project (http://www.ltb-project.org) |
| 5 | #================================================= |
| 6 | |
| 7 | /var/log/openldap.log {
|
| 8 | daily |
| 9 | rotate 10 |
| 10 | missingok |
| 11 | notifempty |
| 12 | sharedscripts |
| 13 | postrotate |
| 14 | # reload syslog |
| 15 | /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true |
| 16 | /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true |
| 17 | endscript |
| 18 | } |