summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am1
-rw-r--r--src/examples/logrotate11
2 files changed, 12 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 93de6630a..aa7fccb9d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -389,6 +389,7 @@ dist_noinst_DATA += \
examples/sssd.conf \
examples/sssdproxytest \
examples/sudo \
+ examples/logrotate \
providers/sssd_be.exports \
sss_client/COPYING \
sss_client/COPYING.LESSER \
diff --git a/src/examples/logrotate b/src/examples/logrotate
new file mode 100644
index 000000000..9df721f2a
--- /dev/null
+++ b/src/examples/logrotate
@@ -0,0 +1,11 @@
+/var/log/sssd/*.log {
+ weekly
+ missingok
+ notifempty
+ sharedscripts
+ rotate 2
+ compress
+ postrotate
+ /bin/kill -HUP `cat /var/run/sssd.pid 2>/dev/null` 2> /dev/null || true
+ endscript
+}